import { Drawer as DrawerPrimitive } from 'vaul'
import * as React from 'react'
import { cn } from '@/lib/utils'
shouldScaleBackground = true,
}: React.ComponentProps<typeof DrawerPrimitive.Root>) => (
shouldScaleBackground={shouldScaleBackground}
Drawer.displayName = 'Drawer'
const DrawerTrigger = DrawerPrimitive.Trigger
const DrawerPortal = DrawerPrimitive.Portal
const DrawerClose = DrawerPrimitive.Close
const DrawerOverlay = React.forwardRef<
React.ElementRef<typeof DrawerPrimitive.Overlay>,
React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay>
>(({ className, ...props }, ref) => (
className={cn('fixed inset-0 z-50 bg-overlay', className)}
DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName
const DrawerContent = React.forwardRef<
React.ElementRef<typeof DrawerPrimitive.Content>,
React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content>
>(({ className, children, ...props }, ref) => (
'fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-base border-2 border-border dark:border-darkBorder bg-white dark:bg-darkBg font-bold',
<div className="mx-auto mt-4 h-2 w-[100px] rounded-full bg-darkBg dark:bg-white" />
</DrawerPrimitive.Content>
DrawerContent.displayName = 'DrawerContent'
}: React.HTMLAttributes<HTMLDivElement>) => (
'grid gap-1.5 p-4 text-center font-bold sm:text-left',
DrawerHeader.displayName = 'DrawerHeader'
}: React.HTMLAttributes<HTMLDivElement>) => (
className={cn('mt-auto flex flex-col gap-2 p-4 font-bold', className)}
DrawerFooter.displayName = 'DrawerFooter'
const DrawerTitle = React.forwardRef<
React.ElementRef<typeof DrawerPrimitive.Title>,
React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title>
>(({ className, ...props }, ref) => (
'text-lg font-heading leading-none tracking-tight',
DrawerTitle.displayName = DrawerPrimitive.Title.displayName
const DrawerDescription = React.forwardRef<
React.ElementRef<typeof DrawerPrimitive.Description>,
React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description>
>(({ className, ...props }, ref) => (
<DrawerPrimitive.Description
className={cn('text-sm font-base text-text dark:text-darkText', className)}
DrawerDescription.displayName = DrawerPrimitive.Description.displayName