'use client'; import * as React from 'react'; import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog'; import { cn } from '../../shared/utils'; import { buttonVariants } from '../button'; /** * Confirmation dialog for destructive or irreversible actions. * * @description * A blocking modal that forces explicit action (Confirm / Cancel), preventing * accidental acceptance by disabling click-outside dismissal. * * @ai-rules * 1. Unlike ``, always bifurcate with `` (confirm) and `` (abort). * 2. Use ONLY for permanently destructive flows (delete, archive, logout). For informational use ``. * 3. `` renders with `variant="destructive"` styling by default — do not override unless intentional. */ function AlertDialog({ ...props }: React.ComponentProps) { return ; } function AlertDialogTrigger({ ...props }: React.ComponentProps) { return ; } function AlertDialogPortal({ ...props }: React.ComponentProps) { return ; } const AlertDialogOverlay = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => { return ( ); }); AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName; function AlertDialogContent({ className, ...props }: React.ComponentProps) { return ( ); } function AlertDialogHeader({ className, ...props }: React.ComponentProps<'div'>) { return (
); } function AlertDialogFooter({ className, ...props }: React.ComponentProps<'div'>) { return (
); } function AlertDialogTitle({ className, ...props }: React.ComponentProps) { return ( ); } function AlertDialogDescription({ className, ...props }: React.ComponentProps) { return ( ); } function AlertDialogAction({ className, ...props }: React.ComponentProps) { return ; } function AlertDialogCancel({ className, ...props }: React.ComponentProps) { return ( ); } export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };