/* Copyright (C) 2023-2026 QuantumNous This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . For commercial licensing, please contact support@quantumnous.com */ 'use client' import * as React from 'react' import { Dialog as SheetPrimitive } from '@base-ui/react/dialog' import { Cancel01Icon } from '@hugeicons/core-free-icons' import { HugeiconsIcon } from '@hugeicons/react' import { cn } from '@/lib/utils' import { Button } from '@/components/ui/button' function Sheet({ ...props }: SheetPrimitive.Root.Props) { return } function SheetTrigger({ ...props }: SheetPrimitive.Trigger.Props) { return } function SheetClose({ ...props }: SheetPrimitive.Close.Props) { return } function SheetPortal({ ...props }: SheetPrimitive.Portal.Props) { return } function SheetOverlay({ className, ...props }: SheetPrimitive.Backdrop.Props) { return ( ) } function SheetContent({ className, children, side = 'right', showCloseButton = true, ...props }: SheetPrimitive.Popup.Props & { side?: 'top' | 'right' | 'bottom' | 'left' showCloseButton?: boolean }) { // Side-specific classes are emitted via JS conditionals (rather than // `data-[side=*]:` variants) so consumer-provided width overrides such as // `sm:max-w-2xl` can be correctly merged by `tailwind-merge` and the CSS // cascade — the data-attribute variants would otherwise win on specificity // and trap the panel at the default `sm:max-w-sm` width. return ( {children} {showCloseButton && ( } > Close )} ) } function SheetHeader({ className, ...props }: React.ComponentProps<'div'>) { return (
) } function SheetFooter({ className, ...props }: React.ComponentProps<'div'>) { return (
) } function SheetTitle({ className, ...props }: SheetPrimitive.Title.Props) { return ( ) } function SheetDescription({ className, ...props }: SheetPrimitive.Description.Props) { return ( ) } export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, }