import { IconX } from '@tabler/icons-solidjs' import { JSX, ParentComponent, Show, children } from 'solid-js' import { twMerge } from 'tailwind-merge' import { Button } from '~/components' type Props = { ref?: (el: HTMLDialogElement) => void icon?: JSX.Element title?: JSX.Element action?: JSX.Element } const actionClassName = 'sticky bottom-0 z-50 flex items-center justify-end bg-base-100 bg-opacity-80 p-4 backdrop-blur' export const Modal: ParentComponent = (props) => { let dialogRef: HTMLDialogElement | undefined return ( (dialogRef = el) && props.ref?.(el)} class="modal modal-bottom sm:modal-middle" > ) }