import type { ReactNode } from "react"; import Tooltip from "./Tooltip"; import { FocusSafeButton } from "./FocusSafeButton"; import { SURFACE } from "./surfaces"; import { SectionLabel } from "./Headings"; // Shared form/settings primitives, factored out of the many panels that each re-declared // them (Settings, Config, Stats, admin pages, Setup wizard). Visual contract unchanged. /** Pill on/off switch — the bare control. In a settings list use `SwitchRow`, whose whole row toggles; * a row laid out by hand points a `