/*
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
*/
import * as React from 'react'
import { Dialog as DialogPrimitive } 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 Dialog({ ...props }: DialogPrimitive.Root.Props) {
return
}
function DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props) {
return
}
function DialogPortal({ ...props }: DialogPrimitive.Portal.Props) {
return
}
function DialogClose({ ...props }: DialogPrimitive.Close.Props) {
return
}
function DialogOverlay({
className,
...props
}: DialogPrimitive.Backdrop.Props) {
return (
)
}
function DialogContent({
className,
children,
showCloseButton = true,
...props
}: DialogPrimitive.Popup.Props & {
showCloseButton?: boolean
}) {
return (
{children}
{showCloseButton && (
}
>
Close
)}
)
}
function DialogHeader({ className, ...props }: React.ComponentProps<'div'>) {
return (
)
}
function DialogFooter({
className,
showCloseButton = false,
children,
...props
}: React.ComponentProps<'div'> & {
showCloseButton?: boolean
}) {
return (
{children}
{showCloseButton && (
}>
Close
)}
)
}
function DialogTitle({ className, ...props }: DialogPrimitive.Title.Props) {
return (
)
}
function DialogDescription({
className,
...props
}: DialogPrimitive.Description.Props) {
return (
)
}
export {
Dialog,
DialogClose,
DialogContent,
DialogDescription,
DialogFooter,
DialogHeader,
DialogOverlay,
DialogPortal,
DialogTitle,
DialogTrigger,
}