diff options
author | eug-vs <eug-vs@keemail.me> | 2020-08-11 21:38:47 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-08-11 21:38:47 +0300 |
commit | 4bcabf751b8292fee696db5e027f38b1838b0be6 (patch) | |
tree | 82f7b42441dd419037e3c59142a3f9c6b1421870 /src/components/Header/BottomBar.tsx | |
parent | c6723fa8a2a303f356b1756b45b2190203c96582 (diff) | |
download | which-ui-4bcabf751b8292fee696db5e027f38b1838b0be6.tar.gz |
feat: add mobile header
Diffstat (limited to 'src/components/Header/BottomBar.tsx')
-rw-r--r-- | src/components/Header/BottomBar.tsx | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/components/Header/BottomBar.tsx b/src/components/Header/BottomBar.tsx new file mode 100644 index 0000000..57efb3e --- /dev/null +++ b/src/components/Header/BottomBar.tsx @@ -0,0 +1,39 @@ +import React from 'react'; +import { AppBar, Toolbar } from '@material-ui/core'; +import { makeStyles } from '@material-ui/core/styles'; + +interface PropTypes { + profile: JSX.Element; + feed: JSX.Element; + notifications: JSX.Element; +} + +const useStyles = makeStyles(theme => ({ + root: { + top: 'auto', + bottom: 0 + }, + toolbar: { + display: 'flex', + justifyContent: 'space-around' + } +})); + + +const BottomBar: React.FC<PropTypes> = React.memo(props => { + const classes = useStyles(); + const { profile, feed, notifications } = props; + + return ( + <AppBar position="fixed" className={classes.root}> + <Toolbar className={classes.toolbar}> + {notifications} + {feed} + {profile} + </Toolbar> + </AppBar> + ); +}); + +export default BottomBar; + |