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

Function getLibraryIcon

packages/dev/s2-docs/src/library.tsx:30–37  ·  view source on GitHub ↗
(library: Library)

Source from the content-addressed store, hash-verified

28}
29
30export function getLibraryIcon(library: Library): React.ReactNode {
31 switch (library) {
32 case 'react-aria':
33 return <ReactAriaLogo />;
34 default:
35 return <AdobeLogo />;
36 }
37}

Callers 2

getButtonIconFunction · 0.90
MobileHeaderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected