aboutsummaryrefslogtreecommitdiff
path: root/src/components/Header/BottomBar.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Header/BottomBar.tsx')
-rw-r--r--src/components/Header/BottomBar.tsx39
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;
+