import * as React from 'react'
import { Dialog as DialogPrimitive } from '@base-ui/react/dialog'
import { cn } from './utils'
import { Button } from './button'
import { IconX } from '@tabler/icons-react'
import { ScopedPortal } from './scoped-portal'
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 (
)
}
type DialogContentProps = DialogPrimitive.Popup.Props & {
showCloseButton?: boolean
}
function DialogContent({
className,
children,
showCloseButton = true,
...props
}: DialogContentProps) {
return (
{children}
{showCloseButton && (
}
>
Close
)}
)
}
function DialogHeader({ className, ...props }: React.ComponentProps<'div'>) {
return (
)
}
type DialogFooterProps = React.ComponentProps<'div'> & {
showCloseButton?: boolean
}
function DialogFooter({
className,
showCloseButton = false,
children,
...props
}: DialogFooterProps) {
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
}