import { X } from "@phosphor-icons/react"; import * as SheetPrimitive from "@radix-ui/react-dialog"; import { cn } from "@reactive-resume/utils"; import { type VariantProps } from "class-variance-authority"; import { forwardRef } from "react"; import { sheetVariants } from "../variants/sheet"; export const Sheet = SheetPrimitive.Root; export const SheetTrigger = SheetPrimitive.Trigger; export const SheetClose = SheetPrimitive.Close; export const SheetPortal = (props: SheetPrimitive.DialogPortalProps) => ( ); SheetPortal.displayName = SheetPrimitive.Portal.displayName; export const SheetOverlay = forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); SheetOverlay.displayName = SheetPrimitive.Overlay.displayName; export type SheetContentProps = { showClose?: boolean; } & React.ComponentPropsWithoutRef & VariantProps; export const SheetContent = forwardRef< React.ElementRef, SheetContentProps >(({ side = "right", className, children, showClose = true, ...props }, ref) => ( {children} {showClose && ( Close )} )); SheetContent.displayName = SheetPrimitive.Content.displayName; export const SheetHeader = ({ className, ...props }: React.HTMLAttributes) => (
); SheetHeader.displayName = "SheetHeader"; export const SheetFooter = ({ className, ...props }: React.HTMLAttributes) => (
); SheetFooter.displayName = "SheetFooter"; export const SheetTitle = forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); SheetTitle.displayName = SheetPrimitive.Title.displayName; export const SheetDescription = forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); SheetDescription.displayName = SheetPrimitive.Description.displayName;