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

Function resolveCategory

frontend/src/utils/categoryColors.ts:9–11  ·  view source on GitHub ↗
(category: string)

Source from the content-addressed store, hash-verified

7import { useThemeStore } from '@/store/themeStore';
8
9function resolveCategory(category: string): ComponentCategory {
10 return normalizeComponentCategory(category) ?? DEFAULT_COMPONENT_CATEGORY;
11}
12
13export function getCategoryTextColorClass(category: string): string {
14 return getComponentCategoryDescriptor(resolveCategory(category)).textColorClass;

Callers 3

Calls 1

Tested by

no test coverage detected