MCPcopy Create free account
hub / github.com/ShipSecAI/studio / getCategoryHeaderBackgroundColor

Function getCategoryHeaderBackgroundColor

frontend/src/utils/categoryColors.ts:22–25  ·  view source on GitHub ↗
(category: string, isDarkMode: boolean)

Source from the content-addressed store, hash-verified

20}
21
22export function getCategoryHeaderBackgroundColor(category: string, isDarkMode: boolean): string {
23 const colors = getComponentCategoryDescriptor(resolveCategory(category)).headerBackgroundColor;
24 return isDarkMode ? colors.dark : colors.light;
25}
26
27export function useCategoryColors(category: string) {
28 const theme = useThemeStore((state) => state.theme);

Callers 3

getHeaderBackgroundColorFunction · 0.90
useCategoryColorsFunction · 0.85

Calls 2

resolveCategoryFunction · 0.85

Tested by

no test coverage detected