import { Overlay } from "@/components/Overlay"; import { ReactNode } from "react"; import { createPortal } from "react-dom"; interface Props { show: boolean; children?: ReactNode; } export function ModalFrame(props: { children?: ReactNode }) { return {props.children}; } export function Modal(props: Props) { if (!props.show) return null; return createPortal({props.children}, document.body); } export function ModalCard(props: { children?: ReactNode }) { return (
{props.children}
); }