"use client"; import * as React from "react"; import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog"; import { cn } from "@formbricks/lib/cn"; const AlertDialog: React.ComponentType = AlertDialogPrimitive.Root; const AlertDialogTrigger: React.ComponentType = AlertDialogPrimitive.Trigger; const AlertDialogPortal = ({ className, children, ...props }: AlertDialogPrimitive.AlertDialogPortalProps) => (
{children}
); AlertDialogPortal.displayName = AlertDialogPrimitive.Portal.displayName; const AlertDialogOverlay = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, children, ...props }, ref) => ( )); AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName; const AlertDialogContent: React.ComponentType = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName; interface AlertDialogHeaderProps extends React.HTMLAttributes { dangerouslySetInnerHTML?: { __html: string; }; } const AlertDialogHeader = ({ className, ...props }: AlertDialogHeaderProps) => (
); AlertDialogHeader.displayName = "AlertDialogHeader"; interface AlertDialogFooterProps extends React.HTMLAttributes { dangerouslySetInnerHTML?: { __html: string; }; } const AlertDialogFooter = ({ className, ...props }: AlertDialogFooterProps) => (
); AlertDialogFooter.displayName = "AlertDialogFooter"; const AlertDialogTitle: React.ComponentType = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName; const AlertDialogDescription: React.ComponentType = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName; const AlertDialogAction: React.ComponentType = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName; const AlertDialogCancel: React.ComponentType = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName; export { AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };