import type { ThemeConfig } from './theme.js' import { themeScript } from './theme.js' export type ThemeScriptProps = Partial> /** * Sets the theme on BEFORE anything is painted — no flash of the light * theme. Put it first in (or turn on `theme` in ), and * add `suppressHydrationWarning` to : the attribute differs from the server HTML on purpose. * * const shell = await getSiteShell(locale) * … */ export function ThemeScript({ allowToggle = false, defaultTheme = null }: ThemeScriptProps) { return