import { Trans } from "@lingui/react/macro"; import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, } from "@rakazo/ui-web"; import type { ReactNode } from "react"; export function ConfirmDialog({ open, title, description, action, destructive = false, onConfirm, onCancel, }: { open: boolean; title: ReactNode; description?: ReactNode; action: ReactNode; destructive?: boolean; onConfirm: () => void; onCancel: () => void; }) { return ( { if (!next) onCancel(); }} > {title} {description ? {description} : null} Cancel onConfirm()} > {action} ); }