// components/success-dialog.tsx "use client"; import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, } from "@/shared/components/ui/alert-dialog"; import { ReactNode } from "react"; type SuccessDialogProps = { open: boolean; onOpenChange: (open: boolean) => void; title?: string; description?: string; confirmText?: string; cancelText?: string; onConfirm?: () => void; onCancel?: () => void; children?: ReactNode; }; export function SuccessDialog({ open, onOpenChange, title = "Success!", description = "Operation completed successfully.", confirmText = "OK", cancelText, onConfirm, onCancel, children, }: Readonly) { return ( {title} {description} {children} {cancelText && ( {cancelText} )} {confirmText} ); }