// AlignUI Drawer v0.0.0 'use client'; import * as React from 'react'; import * as DialogPrimitive from '@radix-ui/react-dialog'; import { X } from 'lucide-react'; import * as CompactButton from '@/components/ui/compact-button'; import { cn } from '@/utils/cn'; const DrawerRoot = DialogPrimitive.Root; DrawerRoot.displayName = 'Drawer'; const DrawerTrigger = DialogPrimitive.Trigger; DrawerTrigger.displayName = 'DrawerTrigger'; const DrawerClose = DialogPrimitive.Close; DrawerClose.displayName = 'DrawerClose'; const DrawerPortal = DialogPrimitive.Portal; DrawerPortal.displayName = 'DrawerPortal'; const DrawerOverlay = React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(({ className, ...rest }, forwardedRef) => { return ( ); }); DrawerOverlay.displayName = 'DrawerOverlay'; const DrawerContent = React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(({ className, children, ...rest }, forwardedRef) => { return (
{children}
); }); DrawerContent.displayName = 'DrawerContent'; function DrawerHeader({ className, children, showCloseButton = true, ...rest }: React.HTMLAttributes & { showCloseButton?: boolean; }) { return (
{children} {showCloseButton && ( )}
); } DrawerHeader.displayName = 'DrawerHeader'; const DrawerTitle = React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(({ className, ...rest }, forwardedRef) => { return ( ); }); DrawerTitle.displayName = 'DrawerTitle'; function DrawerBody({ className, children, ...rest }: React.HTMLAttributes) { return (
{children}
); } DrawerBody.displayName = 'DrawerBody'; function DrawerFooter({ className, ...rest }: React.HTMLAttributes) { return (
); } DrawerFooter.displayName = 'DrawerFooter'; export { DrawerRoot as Root, DrawerTrigger as Trigger, DrawerClose as Close, DrawerContent as Content, DrawerHeader as Header, DrawerTitle as Title, DrawerBody as Body, DrawerFooter as Footer, };