'use client'; import * as DialogPrimitive from '@radix-ui/react-dialog'; import { X } from 'lucide-react'; import { cn } from '@/lib/utils'; export const Dialog = DialogPrimitive.Root; export const DialogTrigger = DialogPrimitive.Trigger; export function DialogContent({ className, placement = 'center', children, style, ...props }: React.ComponentProps & { placement?: 'center' | 'upper'; }) { const placementStyle: React.CSSProperties = placement === 'upper' ? { top: 'max(1.5rem, 10vh)', left: '50%', transform: 'translateX(-50%)', margin: 0 } : { top: '50%', left: '50%', transform: 'translate(-50%, -50%)', margin: 0 }; const overlayZ = placement === 'upper' ? 'z-[300]' : 'z-[200]'; const contentZ = placement === 'upper' ? 'z-[301]' : 'z-[201]'; return ( {children} ); } export function DialogHeader({ className, ...props }: React.HTMLAttributes) { return
; } export function DialogTitle({ className, ...props }: React.ComponentProps) { return ; }