| 84 | } |
| 85 | |
| 86 | function AlertDialogFooter({ |
| 87 | className, |
| 88 | variant = "default", |
| 89 | ...props |
| 90 | }: React.ComponentProps<"div"> & { |
| 91 | variant?: "default" | "bare"; |
| 92 | }) { |
| 93 | return ( |
| 94 | <div |
| 95 | className={cn( |
| 96 | "flex flex-col-reverse gap-2 px-6 sm:flex-row sm:justify-end sm:rounded-b-[calc(var(--radius-2xl)-1px)]", |
| 97 | variant === "default" && "border-t bg-muted/50 py-4", |
| 98 | variant === "bare" && "pt-4 pb-6", |
| 99 | className, |
| 100 | )} |
| 101 | data-slot="alert-dialog-footer" |
| 102 | {...props} |
| 103 | /> |
| 104 | ); |
| 105 | } |
| 106 | |
| 107 | function AlertDialogTitle({ |
| 108 | className, |