import type { ReactNode } from 'react' import { cn } from '@evobgp/ui/lib/utils' import { FieldGroup } from '@evobgp/ui/components/field' import { ScrollArea } from '@evobgp/ui/components/scroll-area' import { Sheet, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, } from '@evobgp/ui/components/sheet' interface FormDrawerProps { open: boolean onOpenChange: (open: boolean) => void title: string description?: string children: ReactNode footer: ReactNode className?: string } /** * Create/edit overlay — Sheet DNA (sheet-8) + FieldGroup (form-7). * @see https://reui.io/preview/base/sheet-8 * @see https://reui.io/preview/base/form-7 */ export function FormDrawer({ open, onOpenChange, title, description, children, footer, className, }: FormDrawerProps) { return ( {title} {description ? {description} : null}
{children}
{footer}
) }