//import { isModalClosing } from "../../components/ui/Modal"; import { Screen } from "./Intermediate"; import { InputModal } from "./modals/Input"; import { PromptModal } from "./modals/Prompt"; export interface Props { screen: Screen; openScreen: (screen: Screen) => void; } export default function Modals({ screen, openScreen }: Props) { const onClose = () => //isModalClosing || screen.id === "onboarding" openScreen({ id: "none" }); // : internalEmit("Modal", "close"); switch (screen.id) { case "_prompt": return ; case "_input": return ; } return null; }