MCPcopy Create free account
hub / github.com/fontsource/fontsource / transformCategories

Function transformCategories

website/app/components/search/Dropdowns.tsx:30–35  ·  view source on GitHub ↗
(items: MenuItem[])

Source from the content-addressed store, hash-verified

28};
29
30const transformCategories = (items: MenuItem[]): MenuItem[] => {
31 return items.map((item) => ({
32 ...item,
33 label: categoriesMap[String(item.label)] ?? item.label,
34 }));
35};
36
37const LanguagesDropdown = ({ state$ }: LanguagesDropdownProps) => {
38 const { items, refine, searchForItems } = useRefinementList({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected