import * as React from "react"; import { Dialog as DialogPrimitive } from "@base-ui/react/dialog"; import { X } from "lucide-react"; import { cn } from "../utils/cn"; const Sheet = DialogPrimitive.Root; const SheetPortal = DialogPrimitive.Portal; const SheetTrigger = React.forwardRef( (props, ref) => , ); SheetTrigger.displayName = "SheetTrigger"; const SheetClose = React.forwardRef( (props, ref) => , ); SheetClose.displayName = "SheetClose"; const SheetOverlay = React.forwardRef< React.ComponentRef, DialogPrimitive.Backdrop.Props >(({ className, ...props }, ref) => ( )); SheetOverlay.displayName = "SheetOverlay"; const SheetContent = React.forwardRef< React.ComponentRef, SheetContentProps >(({ side = "right", className, children, ...props }, ref) => ( {children} Close )); SheetContent.displayName = "SheetContent"; const SheetHeader = ({ className, ...props }: React.HTMLAttributes) => (
); SheetHeader.displayName = "SheetHeader"; const SheetTitle = React.forwardRef< React.ComponentRef, DialogPrimitive.Title.Props >(({ className, ...props }, ref) => ( )); SheetTitle.displayName = "SheetTitle"; const SheetDescription = React.forwardRef< React.ComponentRef, DialogPrimitive.Description.Props >(({ className, ...props }, ref) => ( )); SheetDescription.displayName = "SheetDescription"; type SheetTriggerProps = DialogPrimitive.Trigger.Props; type SheetCloseProps = DialogPrimitive.Close.Props; interface SheetContentProps extends DialogPrimitive.Popup.Props { side?: "top" | "right" | "bottom" | "left"; } export { Sheet, SheetPortal, SheetOverlay, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetTitle, SheetDescription, };