import { Dialog as DialogPrimitive } from '@base-ui/react/dialog';
import { Button } from '@components/common/ui/Button.js';
import { cn } from '@evershop/evershop/lib/util/cn';
import { XIcon } from 'lucide-react';
import * as React from 'react';
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
};