import { useState } from "preact/hooks";
import { DAY, MIN, STATS } from "../app/config.ts";
import { copyText, setAge } from "../app/debug.ts";
import { writeDiary } from "../app/diary.ts";
import { editState, petEngine } from "../app/engine.ts";
import { age, dayNum, worldState } from "../app/simulation.ts";
import { brain, store, ui, view } from "../app/store.ts";
import { header, offerThing, stageAges, wakeChance } from "../core.ts";
import type { Disturbance } from "../types.ts";
import { canRunLocally, isRemote } from "../app/hosting.ts";
export function Debug() {
const s = store.state,
pet = s.pet;
const [days, setDays] = useState(() => (age() / DAY).toFixed(2));
const n = petEngine().disturbancesAt(Date.now()) + 1;
return (
);
}