import { Screen } from "./Intermediate"; import { ErrorModal } from "./modals/Error"; import { InputModal } from "./modals/Input"; import { PromptModal } from "./modals/Prompt"; import { SignedOutModal } from "./modals/SignedOut"; import { ClipboardModal } from "./modals/Clipboard"; import { OnboardingModal } from "./modals/Onboarding"; export interface Props { screen: Screen; openScreen: (id: any) => void; } export default function Modals({ screen, openScreen }: Props) { const onClose = () => openScreen({ id: "none" }); switch (screen.id) { case "_prompt": return ; case "_input": return ; case "error": return ; case "signed_out": return ; case "clipboard": return ; case "onboarding": return ; } return null; }