"use client"; interface ConfirmDialogProps { title: string; message: string; confirmLabel?: string; cancelLabel?: string; variant?: "default" | "danger"; onConfirm: () => void; onCancel: () => void; } export function ConfirmDialog({ title, message, confirmLabel = "Confirm", cancelLabel = "Cancel", variant = "default", onConfirm, onCancel, }: ConfirmDialogProps) { return (
{ if (e.target === e.currentTarget) onCancel(); }} >

{title}

{message}

); }