MCPcopy
hub / github.com/TheOrcDev/8bitcn-ui / useThemeConfig

Function useThemeConfig

components/active-theme.tsx:84–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82}
83
84export function useThemeConfig() {
85 const context = useContext(ThemeContext);
86 if (context === undefined) {
87 throw new Error(
88 "useThemeConfig must be used within an ActiveThemeProvider"
89 );
90 }
91 return context;
92}
93
94export const useUrlTheme = () =>
95 useQueryState("theme", parseAsStringLiteral(Object.values(Theme)));

Callers 6

ProfileCreatorFunction · 0.90
ThemeSelectorFunction · 0.90
ThemeGridFunction · 0.90
ThemeSelectorExampleFunction · 0.90
ThemeSelectorShowcaseFunction · 0.90
ActiveThemeUrlSyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected