import { JSX } from 'solid-js' import { DialogHeader } from './DialogHeader' interface DialogProps { name?: string showBackBtn?: () => boolean onBack?: () => void onClose: () => void title: () => string children?: () => JSX.Element extras?: () => JSX.Element } export const Dialog = (props: DialogProps) => { const { showBackBtn, onBack, onClose, title, ...others } = props return (
{others.children?.()}
{others.extras?.()}
) }