/** * Generic confirm dialog used by destructive actions (task delete). */ import { t } from '../locales.ts' import css from '../board.module.css' /** Confirm overlay props. */ export interface ConfirmDialogProps { title: string message: string confirmLabel: string /** Render the confirm button in the danger style. */ danger?: boolean onCancel: () => void onConfirm: () => void } /** Small confirm overlay. */ export function ConfirmDialog({ title, message, confirmLabel, danger, onCancel, onConfirm }: ConfirmDialogProps) { return (
{message}