import { FC } from "react"; import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "./alert-dialog"; 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 certain you want to continue? {msg || message?.[type]} No Yes )} ); };