import { FC } from "react"; import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "./alert-dialog"; import { X } from "lucide-react"; export const Alert: FC = ({ type, onClick, children, className, content, msg }) => { const message: any = { save: "Your data will be saved securely. You can update it at any time if needed.", delete: "This action cannot be undone. This will permanently remove your data from our servers.", }; return ( <> {children} {content ? ( content ) : ( <> Are you absolutely sure? {message?.[type] || msg} No Yes )} ); };