import React, { useState } from 'react'; import { Link } from 'react-router-dom'; import { BottomNavigation, BottomNavigationAction } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faHome, faList, faMoneyCheck } from '@fortawesome/free-solid-svg-icons'; const useStyles = makeStyles((theme) => ({ root: { width: '100%', }, icon: { color: '#f44336', }, })); export const NavigationBar = () => { const classes = useStyles(); const [activePage, setActivePage] = useState(0); return ( { setActivePage(newPage); }} showLabels className={classes.root} > } to="/bank" /> } to="/bank/account" /> } to="/bank/transactions" /> ); };