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