UNPKG

@reown/appkit-scaffold-ui

Version:

#### 🔗 [Website](https://reown.com/appkit)

16 lines • 663 B
import { ConstantsUtil as CommonConstantsUtil } from '@reown/appkit-common'; import { OptionsController } from '@reown/appkit-controllers'; import { ConstantsUtil } from './ConstantsUtil.js'; export const HelpersUtil = { getTabsByNamespace(namespace) { const isEVM = Boolean(namespace) && namespace === CommonConstantsUtil.CHAIN.EVM; if (!isEVM) { return []; } if (OptionsController.state.remoteFeatures?.activity === false) { return ConstantsUtil.ACCOUNT_TABS.filter(tab => tab.label !== 'Activity'); } return ConstantsUtil.ACCOUNT_TABS; } }; //# sourceMappingURL=HelpersUtil.js.map