admin/types/alertModal.ts
alisaza e1eaf5eff5 feat: initial ghabilee-admin backoffice app
Extract admin dashboard from ghabilee-frontend2 into a dedicated Next.js
app for backoffice.ghabilee.ir (no SEO indexing / Clarity).
2026-09-05 13:12:59 +03:30

10 lines
313 B
TypeScript

export interface ShowAlertOptions {
/** Red bordered accept button (e.g. delete confirm) */
dangerAccept?: boolean
}
export interface AlertModalContextType {
showAlert: (message: string, onConfirm?: (data?: unknown) => unknown, data?: unknown, options?: ShowAlertOptions) => void
hideAlert: () => void
}