"use client" import * as SheetPrimitive from "@radix-ui/react-dialog" import { Cross2Icon } from "@radix-ui/react-icons" import { type VariantProps } from "class-variance-authority" import * as React from "react" import { sheetContentStyle, sheetDescriptionStyle, sheetFooterStyle, sheetHeaderStyle, sheetOverlayStyle, sheetTitleStyle, sheetVariants } from "./variants" const Root = SheetPrimitive.Root const SheetTrigger = SheetPrimitive.Trigger const SheetClose = SheetPrimitive.Close const SheetPortal = SheetPrimitive.Portal const SheetOverlay = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(function SheetOverlayEloquent({ className, ...props }, ref) { return ( ) }) interface SheetContentProps extends React.ComponentPropsWithoutRef, VariantProps { } const SheetContent = React.forwardRef< React.ElementRef, SheetContentProps >(function SheetContentEloquent({ side = "right", className, children, ...props }, ref) { return ( {children} Close ) }) const SheetHeader = (function SheetHeaderEloquent({ className, ...props }: React.HTMLAttributes) { return (
) }) const SheetFooter = (function SheetFooterEloquent({ className, ...props }: React.HTMLAttributes) { return (
) }) const SheetTitle = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(function SheetTitleEloquent({ className, ...props }, ref) { return ( ) }) const SheetDescription = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(function SheetDescriptionEloquent({ className, ...props }, ref) { return ( ) }) export const Sheet = { Root, Portal: SheetPortal, Overlay: SheetOverlay, Trigger: SheetTrigger, Close: SheetClose, Content: SheetContent, Header: SheetHeader, Footer: SheetFooter, Title: SheetTitle, Description: SheetDescription, }