import { ChangeDetectionStrategy, Component, Input } from '@angular/core';

@Component({
  selector: 'msfa-roles-dialog',
  templateUrl: './roles-dialog.component.html',
  styleUrls: ['./roles-dialog.component.scss'],
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class RolesDialogComponent {
  @Input() buttonText = 'Läs mer om roller här';

  displayRolesDialog = false;

  openRolesDialog(): void {
    this.displayRolesDialog = true;
  }

  closeRolesDialog(): void {
    this.displayRolesDialog = false;
  }
}
