"use client"; import * as React from "react"; import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog"; import { cn } from "~/utils/cn"; const Alert = AlertDialogPrimitive.Root; const AlertTrigger = AlertDialogPrimitive.Trigger; const AlertPortal = ({ children, ...props }: AlertDialogPrimitive.AlertDialogPortalProps) => (
{children}
); AlertPortal.displayName = AlertDialogPrimitive.Portal.displayName; const AlertOverlay = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, children, ...props }, ref) => ( )); AlertOverlay.displayName = AlertDialogPrimitive.Overlay.displayName; const AlertContent = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); AlertContent.displayName = AlertDialogPrimitive.Content.displayName; const AlertHeader = ({ className, ...props }: React.HTMLAttributes) => (
); AlertHeader.displayName = "AlertDialogHeader"; const AlertFooter = ({ className, ...props }: React.HTMLAttributes) => (
); AlertFooter.displayName = "AlertDialogFooter"; const AlertTitle = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); AlertTitle.displayName = AlertDialogPrimitive.Title.displayName; const AlertDescription = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); AlertDescription.displayName = AlertDialogPrimitive.Description.displayName; const AlertAction = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); AlertAction.displayName = AlertDialogPrimitive.Action.displayName; const AlertCancel = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); AlertCancel.displayName = AlertDialogPrimitive.Cancel.displayName; export { Alert, AlertTrigger, AlertContent, AlertHeader, AlertFooter, AlertTitle, AlertDescription, AlertAction, AlertCancel, };