'use client' import * as React from 'react' import { Drawer as DrawerPrimitive } from 'vaul' import { cn } from '../lib/utils' const Drawer = ({ shouldScaleBackground = true, ...props }: React.ComponentProps) => ( ) Drawer.displayName = 'Drawer' const DrawerTrigger: typeof DrawerPrimitive.Trigger = DrawerPrimitive.Trigger const DrawerPortal: typeof DrawerPrimitive.Portal = DrawerPrimitive.Portal const DrawerClose: typeof DrawerPrimitive.Close = DrawerPrimitive.Close const DrawerOverlay: typeof DrawerPrimitive.Overlay = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )) DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName const DrawerContent: typeof DrawerPrimitive.Content = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, children, ...props }, ref) => (
{children} )) DrawerContent.displayName = 'DrawerContent' const DrawerHeader = ({ className, ...props }: React.HTMLAttributes) => (
) DrawerHeader.displayName = 'DrawerHeader' const DrawerFooter = ({ className, ...props }: React.HTMLAttributes) => (
) DrawerFooter.displayName = 'DrawerFooter' const DrawerTitle: typeof DrawerPrimitive.Title = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )) DrawerTitle.displayName = DrawerPrimitive.Title.displayName const DrawerDescription: typeof DrawerPrimitive.Description = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )) DrawerDescription.displayName = DrawerPrimitive.Description.displayName export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, }