"use client"; import * as React from "react"; import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog"; import { PortalLayerContainerProvider, type PortalLayerContainer, usePortalLayerContainer, } from "../primitives"; import { cn } from "../../lib/utils"; import { Button } from "../primitives"; function AlertDialog({ ...props }: AlertDialogPrimitive.Root.Props) { return ; } function AlertDialogTrigger({ ...props }: AlertDialogPrimitive.Trigger.Props) { return ; } function AlertDialogPortal({ children, container, ...props }: AlertDialogPrimitive.Portal.Props): React.JSX.Element { const resolvedContainer = usePortalLayerContainer(container); const portalNodeRef = React.useRef(null); return ( {children} ); } function AlertDialogOverlay({ className, ...props }: AlertDialogPrimitive.Backdrop.Props) { return ( ); } function AlertDialogContent({ className, portalContainer, size = "default", ...props }: AlertDialogPrimitive.Popup.Props & { portalContainer?: PortalLayerContainer; size?: "default" | "sm"; }) { return ( ); } function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">) { return (
[data-slot=alert-dialog-media]]:grid-cols-[auto_1fr] has-[>[data-slot=alert-dialog-media]]:items-start has-[>[data-slot=alert-dialog-media]]:justify-items-start has-[>[data-slot=alert-dialog-media]]:text-left", className, )} {...props} /> ); } function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">) { return (
[data-slot=alert-dialog-action]]:w-full group-data-[size=sm]/alert-dialog-content:[&>[data-slot=alert-dialog-cancel]]:w-full sm:flex sm:justify-end sm:[&>[data-slot=alert-dialog-action]]:w-auto sm:[&>[data-slot=alert-dialog-cancel]]:w-auto", className, )} {...props} /> ); } function AlertDialogMedia({ className, ...props }: React.ComponentProps<"div">) { return (
[data-slot=alert-dialog-media]]/alert-dialog-header:row-span-2 *:[svg:not([class*='size-'])]:size-4", className, )} {...props} /> ); } function AlertDialogTitle({ className, ...props }: React.ComponentProps) { return ( [data-slot=alert-dialog-media]]/alert-dialog-header:col-start-2", className, )} {...props} /> ); } function AlertDialogDescription({ className, ...props }: React.ComponentProps) { return ( [data-slot=alert-dialog-media]]/alert-dialog-header:col-start-2 md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-[color:var(--foreground)]", className, )} {...props} /> ); } function AlertDialogAction({ className, ...props }: React.ComponentProps) { return