import React from 'react'; import { makeStyles, BottomNavigation, BottomNavigationAction, } from '@material-ui/core'; import KeyboardArrowLeftIcon from '@material-ui/icons/KeyboardArrowLeft'; import AppsIcon from '@material-ui/icons/Apps'; import RadioButtonUncheckedIcon from '@material-ui/icons/RadioButtonUnchecked'; import { useHistory } from 'react-router-dom'; import Nui from '../../nui-events/utils/Nui'; const useStyles = makeStyles((theme) => ({ root: { zIndex: 2, backgroundColor: theme.palette.background.default, }, })); export const Navigation = () => { const closePhone = () => { console.log('Phone closed'); Nui.send('phone:close'); }; const classes = useStyles(); const history = useHistory(); return ( value()} > history.push('/')} icon={} /> closePhone()} icon={} /> history.goBack()} icon={} /> ); };