import { motion, AnimatePresence } from 'framer-motion'; import { X } from 'lucide-react'; import type { ReactNode } from 'react'; import { cn } from '@szl-holdings/design-system'; interface DrawerPanelProps { isOpen: boolean; onClose: () => void; title: string; subtitle?: string; children: ReactNode; width?: string; } export function DrawerPanel({ isOpen, onClose, title, subtitle, children, width = 'w-[480px]' }: DrawerPanelProps) { return ( {isOpen && ( <>

{title}

{subtitle &&

{subtitle}

}
{children}
)}
); }