import React from 'react'; import { useLocation } from 'react-router-dom'; import { useDispatch } from 'react-redux'; import { CONNECTED_ROUTE, DEFAULT_ROUTE, } from '../../../helpers/constants/routes'; import { Box, ButtonIcon, ButtonIconSize, Icon, IconName, IconSize, Text, } from '../../component-library'; import { useI18nContext } from '../../../hooks/useI18nContext'; import { AlignItems, BackgroundColor, BlockSize, BorderRadius, Display, FlexDirection, IconColor, JustifyContent, TextColor, TextVariant, } from '../../../helpers/constants/design-system'; import { showSelectActionModal } from './app-footer-actions'; export const AppFooter = () => { const t = useI18nContext(); const location = useLocation(); const dispatch = useDispatch(); const walletRoute = `#${DEFAULT_ROUTE}`; const connectedRoute = `#${CONNECTED_ROUTE}`; const activeWallet = location.pathname === DEFAULT_ROUTE; const activeConnections = location.pathname === CONNECTED_ROUTE; return ( {t('wallet')} dispatch(showSelectActionModal())} /> {t('connections')} ); };