import { Dialog, DialogPanel, DialogTitle, Transition, TransitionChild } from "@headlessui/react"; import { Fragment, ReactNode } from "react"; import { X } from "lucide-react"; interface FormDrawerProps { isOpen: boolean; onClose: () => void; title: string; subtitle?: string; children: ReactNode; maxWidth?: string; } export default function FormDrawer({ isOpen, onClose, title, subtitle, children, maxWidth = "max-w-xl", }: FormDrawerProps) { return (
{title} {subtitle && (

{subtitle}

)}
{children}
); }