// Pre-boot veil: covers everything until the title page's logo and fonts // are in, so the menu never pops in half-assembled. Light grey spinner, // centered on the ink. import { useEffect, useState } from "react"; import Box from "@mui/material/Box"; import { keyframes } from "@mui/material/styles"; import { useGame } from "../store.js"; import { INK } from "../theme.js"; const spin = keyframes`to { transform: rotate(360deg); }`; export default function Preboot() { const prebootDone = useGame((s) => s.prebootDone); const [gone, setGone] = useState(false); useEffect(() => { if (!prebootDone) return; const t = setTimeout(() => setGone(true), 300); return () => clearTimeout(t); }, [prebootDone]); if (gone) return null; return ( ); }