MCPcopy Index your code
hub / github.com/adobe/react-spectrum / getLibraryFromPage

Function getLibraryFromPage

packages/dev/s2-docs/src/library.tsx:17–19  ·  view source on GitHub ↗
(page: {name: string})

Source from the content-addressed store, hash-verified

15}
16
17export function getLibraryFromPage(page: {name: string}): Library {
18 return getLibraryFromUrl(page.name);
19}
20
21export function getLibraryLabel(library: Library): string {
22 switch (library) {

Callers 14

NavFunction · 0.90
buildSectionsFromPagesFunction · 0.90
getOrderedLibrariesFunction · 0.90
useSearchMenuStateFunction · 0.90
PostListFunction · 0.90
getTitleFunction · 0.90
getDescriptionFunction · 0.90
getFaviconUrlFunction · 0.90
LayoutFunction · 0.90
getButtonTextFunction · 0.90
getButtonIconFunction · 0.90
HeaderFunction · 0.90

Calls 1

getLibraryFromUrlFunction · 0.85

Tested by

no test coverage detected