import type { ParentProps } from "solid-js";
import { HydrationScript } from "@solidjs/web";
// The document shell — the new index.html: picked up by the src/Document.*
// convention, it wraps the app in the plugin's generated entries and must
// render the full . Head tags go here. It is compiled only into the
// prerendered static shell and ships zero client-side JS: in client mode
// is stripped from the shell, and it activates when the
// app flips to SSR (`ssr: true` in vite.config.ts) — no document changes
// needed. Delete this file to fall back to the plugin's built-in shell.
// The theme is applied by JS at boot, but the shell paints before that: this reads the same
// two inputs the app does (the stored mode, then the machine while the mode is `system`) and
// stamps `data-theme` in the same frame the stylesheet parses, so a light-theme listener never
// sees a dark first frame. It mirrors `lib/theme/mode.ts`'s resolveTheme rather than
// redeciding anything: the app's startThemeSync overwrites this a beat later and owns every
// change after. Kept as a module constant (rather than a literal in the attribute) both to
// read as the deliberate script it is and to keep it out of the `no-innerhtml` heuristic, which
// checks HTML and this is the one legitimate `