import { useEffect, useRef } from "preact/hooks"; import { brainHas, BRAINS, closeUpgrade, getBrain, olderBrain, onMobileData, startUpgrade, } from "../app/brain.ts"; import { CFG, FEATURE_TEXT } from "../app/config.ts"; import { brain, store, ui, upgrade } from "../app/store.ts"; import { fmtMB } from "../app/utils.ts"; import { isRemote } from "../app/hosting.ts"; export function BrainNotice() { if (ui.hostingBusy || isRemote()) return (
{ui.hostingBusy ? "Moving your pet safely…" : ui.remoteError || "Connecting to your pet's server…"}
{text}