import * as Dialog from '@radix-ui/react-dialog' import clsx from 'clsx' import type { ComponentProps, FC, PropsWithChildren, Ref } from 'react' import styles from './Modal.module.css' export const ModalRoot = Dialog.Root export const ModalTrigger = Dialog.Trigger export const ModalPortal = Dialog.Portal export const ModalOverlay = ({ ref, ...props }: { ref?: Ref }) => ModalOverlay.displayName = 'ModalOverlay' export const ModalContent = ({ className, ref, ...props }: ComponentProps & { ref?: Ref }) => ( ) ModalContent.displayName = 'ModalContent' export const ModalTitle: FC> = ({ className, children, ...props }) => ( {children} ) export const ModalDescription: FC< ComponentProps > = ({ children, ...props }) => ( {children} ) type ModalActionsProps = PropsWithChildren & { className?: string } export const ModalActions: FC = ({ children, className, }) => { return
{children}
} export const ModalClose: FC> = ({ children, ...props }) => { return ( {children} ) } export const ModalConfirm: FC> = (props) => { return