MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web / NonFlashOfWrongThemeEls

Function NonFlashOfWrongThemeEls

app/components/ThemeProvider.tsx:97–105  ·  view source on GitHub ↗
({ ssrTheme }: { ssrTheme: boolean })

Source from the content-addressed store, hash-verified

95`;
96
97export function NonFlashOfWrongThemeEls({ ssrTheme }: { ssrTheme: boolean }) {
98 return (
99 <>
100 {ssrTheme ? null : (
101 <script dangerouslySetInnerHTML={{ __html: clientThemeCode }} />
102 )}
103 </>
104 );
105}
106
107export function isTheme(value: unknown): value is Theme {
108 return typeof value === "string" && ["light", "dark"].includes(value);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected