diff --git a/app/components/Dialog/Dialog.tsx b/app/components/Dialog/Dialog.tsx new file mode 100644 index 00000000..5d23a97a --- /dev/null +++ b/app/components/Dialog/Dialog.tsx @@ -0,0 +1,56 @@ +import { + AlertDialog, + AlertDialogAction, + AlertDialogContent, + AlertDialogDescription, + AlertDialogFooter, + AlertDialogHeader, + AlertDialogTitle, + AlertDialogTrigger, +} from "~/components/ui/alert-dialog"; +import { Button } from "~/components/ui/button"; + +type Variants = + | "default" + | "destructive" + | "outline" + | "link" + | "ghost" + | "secondary"; + +type DialogProperties = { + headerText: string; + description?: string; + footer: React.ReactNode[]; + triggerText: string; + variants: Variants | null | undefined; +}; + +export default function Dialog({ + headerText, + description, + footer, + triggerText, + variants, +}: DialogProperties) { + return ( + + + + + + + {headerText} + {description} + + + {footer.map((item, index) => ( + + {item} + + ))} + + + + ); +}