import { Dialog } from '@ark-ui/solid' import { JSX } from 'solid-js' import { CloseIcon } from './icons/CloseIcon' type Props = { isOpen?: boolean onClose?: () => void children: JSX.Element } export const Modal = (props: Props) => { return ( (!e.open ? props.onClose?.() : undefined)} > {props.children} ) }