import { CaretDownOutlined } from '@ant-design/icons' import { useMemo } from 'react' import { Link } from 'react-router-dom' import WalletButtons from '../components/web3/WalletButtons' import { REACT_APP_ENABLE_OFFSET_CARBON_SHOWCASE, REACT_APP_ENABLE_SWAP_V2, } from '../constants/featureFlags' import { useIsMobile } from './useIsMobile' export const useNavConfig = () => { const isMobile = useIsMobile() const navConfig = useMemo(() => { return [ { label: Swap & Bridge, key: '/swap' }, REACT_APP_ENABLE_SWAP_V2 ? { label: ( <> Swap & Bridge V2 beta ), key: '/swap-v2', } : null, { label: Dashboard, key: '/dashboard' }, { label: ( Developers ), key: 'dev-list', }, { label: ( More ), key: 'lifi-more-submenu', disabled: false, children: [ { label: 'Showcases', key: 'lifi-showcase-submenu', children: [ { key: '/showcase/ukraine', label: ( <> 🇺🇦 Help Ukraine! ), }, { type: 'group', label: 'Showcases', key: '/showcase', children: [ { key: '/showcase/etherspot-klima', label: Cross-Chain Klima Staking, }, REACT_APP_ENABLE_OFFSET_CARBON_SHOWCASE ? { key: '/showcase/carbon-offset', label: ( Cross-Chain Carbon Offsetting ), } : null, ], }, ], }, { label: ( Blog ), key: 'blog', }, { label: ( Explore Docs ), key: 'docs', }, { label: ( About ), key: 'about', }, { label: ( Github ), key: 'github', }, { label: ( Twitter ), key: 'twitter', }, { label: 'Legals', key: 'legals-submenu', children: [ { label: ( Privacy Policy ), key: 'privacy', }, { label: ( Imprint ), key: 'imprint', }, { label: ( Terms & Conditions ), key: 'termsAndConditions', }, ], }, ], }, isMobile ? { key: 'wallet-button', label: , } : null, ] }, [isMobile]) return navConfig }