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

Function getButtonText

packages/dev/s2-docs/src/Header.tsx:19–21  ·  view source on GitHub ↗
(currentPage)

Source from the content-addressed store, hash-verified

17import {useSettings} from './SettingsContext';
18
19function getButtonText(currentPage) {
20 return getLibraryLabel(getLibraryFromPage(currentPage));
21}
22
23function getButtonIcon(currentPage) {
24 return getLibraryIcon(getLibraryFromPage(currentPage));

Callers 1

HeaderFunction · 0.85

Calls 2

getLibraryLabelFunction · 0.90
getLibraryFromPageFunction · 0.90

Tested by

no test coverage detected