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