MCPcopy Create free account
hub / github.com/adobe/react-spectrum / getFaviconUrl

Function getFaviconUrl

packages/dev/s2-docs/src/Layout.tsx:142–150  ·  view source on GitHub ↗
(currentPage: Page)

Source from the content-addressed store, hash-verified

140};
141
142const getFaviconUrl = (currentPage: Page): string => {
143 const library = getLibraryFromPage(currentPage);
144 switch (library) {
145 case 'react-aria':
146 return reactAriaFavicon;
147 default:
148 return rspFavicon;
149 }
150};
151
152let articleStyles = style({
153 maxWidth: {

Callers 1

LayoutFunction · 0.85

Calls 1

getLibraryFromPageFunction · 0.90

Tested by

no test coverage detected