button]:my-1 [&>button]:h-10 sm:[&>button]:my-0 ",
className
)}
{...props}
/>
)
AlertDialogFooter.displayName = "AlertDialogFooter"
// Define the title component for the alert dialog
const AlertDialogTitle = React.forwardRef<
React.ElementRef
,
React.ComponentPropsWithoutRef
>((props, ref) => (
))
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName
// Define the description component for the alert dialog
const AlertDialogDescription = React.forwardRef<
React.ElementRef,
React.ComponentPropsWithoutRef
>((props, ref) => (
))
AlertDialogDescription.displayName =
AlertDialogPrimitive.Description.displayName
// Define the action component for the alert dialog
const AlertDialogAction = React.forwardRef<
React.ElementRef,
React.ComponentPropsWithoutRef & {
variant?: "default" | "error" | "secondary" | "outline" | "ghost" | "link"
}
>((props, ref) => (
))
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName
// Define the cancel component for the alert dialog
const AlertDialogCancel = React.forwardRef<
React.ElementRef,
React.ComponentPropsWithoutRef
>((props, ref) => (
))
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName
// Export all the defined components
export {
AlertDialog,
AlertDialogTrigger,
AlertDialogContent,
AlertDialogHeader,
AlertDialogFooter,
AlertDialogTitle,
AlertDialogDescription,
AlertDialogAction,
AlertDialogCancel,
}