export type ImagePreviewDialogProps = {
  /** Controls dialog visibility */
  open: boolean;
  /** Callback fired when the dialog requests to be closed */
  onClose: () => void;
  /** Source URL of the image to preview */
  src?: string;
  /** Filename rendered in the header */
  name?: string;
  /** Alt text for the image; falls back to `name` */
  alt?: string;
  /** Hides the download action button when false */
  showDownload?: boolean;
  /**
   * Optional download handler. If omitted, the dialog will download `src`
   * using `downloadUrl`, naming the file after `name`.
   */
  onDownload?: () => void;
};
