// — root of the Preact rewrite. Currently just `Header` + // `StatusChips` wired to local component state as a first slice (real // `/api/state` polling + the live SSE stream land in follow-up commits // on this same PR, per mara's "one pr != one commit" note on the // issue). Sample values below match the shapes in `types.ts`. import { useState } from 'preact/hooks'; import { Header } from './components/Header.js'; import { StatusChips } from './components/StatusChips.js'; export function Root() { const [model, setModel] = useState('sonnet'); const [effort, setEffort] = useState('high'); const [paused, setPaused] = useState(false); return (
setPaused((p) => !p)} lastTurnLabel="last turn 8.4s" />
); }