import { h, VNode } from "preact"; import { FileButton } from "../../components/FlieButton.js"; import { useAnastasisContext } from "../../context/anastasis.js"; import { AnastasisClientFrame } from "./index.js"; export function StartScreen(): VNode { const reducer = useAnastasisContext(); if (!reducer) { return
no reducer in context
; } return (
{ if (content?.type === "application/json") { reducer.importState(content.content); } }} /> {/* */}
); }