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

import { ButtonComponent } from '@isa/ui/buttons';

import { DialogContentDirective } from '../dialog-content.directive';

/**
 * Input data for the message dialog
 */
export interface MessageDialogData {
  /** The message text to display in the dialog */
  message: string;
  /** Optional custom text for the close button (defaults to "Close" or equivalent) */
  closeText?: string;
}

/**
 * Simple message dialog component
 * Used for displaying informational messages to the user
 * Returns void when closed (no result)
 */
@Component({
  selector: 'ui-message-dialog',
  templateUrl: './message-dialog.component.html',
  changeDetection: ChangeDetectionStrategy.OnPush,
  imports: [ButtonComponent],
})
export class MessageDialogComponent extends DialogContentDirective<
  MessageDialogData,
  void
> {}
