import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog"; import { cn } from "@reactive-resume/utils"; import { forwardRef } from "react"; import { buttonVariants } from "../variants/button"; import type { ButtonProps } from "./button"; export const AlertDialog = AlertDialogPrimitive.Root; export const AlertDialogTrigger = AlertDialogPrimitive.Trigger; export const AlertDialogPortal = (props: AlertDialogPrimitive.AlertDialogPortalProps) => ( ); AlertDialogPortal.displayName = AlertDialogPrimitive.Portal.displayName; export const AlertDialogOverlay = forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName; export const AlertDialogContent = forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName; export const AlertDialogHeader = ({ className, ...props }: React.HTMLAttributes) => (
); AlertDialogHeader.displayName = "AlertDialogHeader"; export const AlertDialogFooter = ({ className, ...props }: React.HTMLAttributes) => (
); AlertDialogFooter.displayName = "AlertDialogFooter"; export const AlertDialogTitle = forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName; export const AlertDialogDescription = forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName; type AlertDialogActionProps = React.ComponentPropsWithoutRef & { variant?: ButtonProps["variant"]; }; export const AlertDialogAction = forwardRef< React.ElementRef, AlertDialogActionProps >(({ className, variant, ...props }, ref) => ( )); AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName; export const AlertDialogCancel = forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;