import React, { useState } from 'react'; import { BottomNavigation, BottomNavigationAction } from '@material-ui/core'; import { NavLink, useLocation } from 'react-router-dom'; import { makeStyles, Theme } from '@material-ui/core/styles'; import PhoneIcon from '@material-ui/icons/Phone'; import PersonIcon from '@material-ui/icons/Person'; import HistoryIcon from '@material-ui/icons/History'; import { useTranslation } from 'react-i18next'; const useStyles = makeStyles((theme: Theme) => ({ root: { width: '100%', backgroundColor: theme.palette.background.paper, }, icon: { color: theme.palette.primary.main, }, })); const DialerNavBar = () => { const classes = useStyles(); const { pathname } = useLocation(); const [page, setPage] = useState(pathname); const { t } = useTranslation(); const handleChange = (_e, newPage) => { setPage(newPage); }; return ( } to="/phone" /> } to="/phone/dial" /> } to="/phone/contacts" /> ); }; export default DialerNavBar;