import { forwardRef } from 'react'; import * as DialogPrimitive from '@radix-ui/react-dialog'; import { X } from 'lucide-react'; import { cn } from '../../lib/utils.js'; // A side drawer built on Radix Dialog. Used for the rule editor, filters, etc. const Sheet = DialogPrimitive.Root; const SheetTrigger = DialogPrimitive.Trigger; const SheetClose = DialogPrimitive.Close; const sideClasses = { right: 'inset-y-0 right-0 h-full w-full max-w-md border-l animate-slide-in-right', left: 'inset-y-0 left-0 h-full w-full max-w-md border-r', }; const SheetContent = forwardRef(function SheetContent({ className, children, side = 'right', ...props }, ref) { return ( {children} Close ); }); function SheetHeader({ className, ...props }) { return
; } function SheetFooter({ className, ...props }) { return
; } const SheetTitle = forwardRef(function SheetTitle({ className, ...props }, ref) { return ; }); const SheetDescription = forwardRef(function SheetDescription({ className, ...props }, ref) { return ; }); export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription };