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: React.ForwardRefExoticComponent< React.ComponentPropsWithoutRef & React.RefAttributes> > = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName; const DrawerContent: React.ForwardRefExoticComponent< React.ComponentPropsWithoutRef & React.RefAttributes> > = 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: React.ForwardRefExoticComponent< React.ComponentPropsWithoutRef & React.RefAttributes> > = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); DrawerTitle.displayName = DrawerPrimitive.Title.displayName; const DrawerDescription: React.ForwardRefExoticComponent< React.ComponentPropsWithoutRef & React.RefAttributes> > = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); DrawerDescription.displayName = DrawerPrimitive.Description.displayName; export { Drawer, DrawerPortal, DrawerOverlay, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription, };