MCPcopy
hub / github.com/nukeop/nuclear / activeThemeId

Function activeThemeId

packages/player/src/stores/themeStore.ts:23–24  ·  view source on GitHub ↗
(theme: ActiveTheme)

Source from the content-addressed store, hash-verified

21export type ActiveTheme = BasicTheme | AdvancedTheme | MarketplaceTheme;
22
23const activeThemeId = (theme: ActiveTheme): string =>
24 theme.type === 'advanced' ? theme.path : theme.id;
25
26const persistActiveTheme = async (theme: ActiveTheme) => {
27 await setSetting('core.theme.active.type', theme.type);

Callers 2

persistActiveThemeFunction · 0.85
themeStore.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected