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

Function resolveComponentCategory

packages/shared/src/component-categories.ts:259–261  ·  view source on GitHub ↗
(value?: string | null)

Source from the content-addressed store, hash-verified

257}
258
259export function resolveComponentCategory(value?: string | null): ComponentCategory {
260 return normalizeComponentCategory(value) ?? DEFAULT_COMPONENT_CATEGORY;
261}
262
263export function getComponentCategoryDescriptor(category?: string | null): ComponentCategoryDescriptor {
264 return COMPONENT_CATEGORY_DESCRIPTORS[resolveComponentCategory(category)];

Callers 1

Calls 1

Tested by

no test coverage detected