MCPcopy Index your code
hub / github.com/github/docs / filterMode

Function filterMode

components/hooks/useTheme.ts:58–62  ·  view source on GitHub ↗
(mode = '')

Source from the content-addressed store, hash-verified

56}
57
58function filterMode(mode = ''): CssColorMode | undefined {
59 if (Object.values<string>(CssColorMode).includes(mode)) {
60 return mode as CssColorMode
61 }
62}
63
64function filterTheme({ name = '', color_mode = '' } = {}): SupportedTheme | undefined {
65 if (Object.values<string>(SupportedTheme).includes(name)) {

Callers 1

getCssThemeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected