'use client'; import * as React from 'react'; import * as Dialog from '@radix-ui/react-dialog'; import { clsx } from 'clsx'; import { X } from 'lucide-react'; export interface ModalProps { open: boolean; onOpenChange: (open: boolean) => void; title: string; description?: string; size?: 'sm' | 'md' | 'lg' | 'full'; children: React.ReactNode; } const sizes: Record = { sm: 'max-w-sm', md: 'max-w-lg', lg: 'max-w-2xl', full: 'max-w-[90vw]', }; export function Modal({ open, onOpenChange, title, description, size = 'md', children, }: ModalProps) { return ( {title} {description && ( {description} )}
{children}
); }