summaryrefslogtreecommitdiff
path: root/src/components/Bar.tsx
diff options
context:
space:
mode:
authorMichael Hunteman <michael@huntm.net>2024-02-13 20:38:17 -0600
committerMichael Hunteman <michael@huntm.net>2024-02-13 20:38:17 -0600
commitaa8854adcb9449d2a961c5e4314a223f6e7bcc04 (patch)
treed58e7d5271c52428170aba24e6bded58215b2d2d /src/components/Bar.tsx
Initial commit
Diffstat (limited to 'src/components/Bar.tsx')
-rw-r--r--src/components/Bar.tsx39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/components/Bar.tsx b/src/components/Bar.tsx
new file mode 100644
index 0000000..ce3db43
--- /dev/null
+++ b/src/components/Bar.tsx
@@ -0,0 +1,39 @@
+import { Link } from 'react-router-dom';
+import AppBar from '@mui/material/AppBar';
+import Box from '@mui/material/Box';
+import Button from '@mui/material/Button';
+import Toolbar from '@mui/material/Toolbar';
+import Typography from '@mui/material/Typography';
+
+function Bar() {
+ const pages = [
+ { name: 'Schedule', to: '/schedule'},
+ { name: 'RSVP', to: '/rsvp' },
+ { name: 'Registry', to: '/registry' }
+ ];
+
+ return (
+ <AppBar position="relative">
+ <Toolbar>
+ <Typography
+ variant="h4"
+ component={Link}
+ to="/"
+ color="inherit"
+ sx={{ textDecoration: 'none' }}
+ >
+ Wedding
+ </Typography>
+ <Box sx={{ marginLeft: 'auto' }}>
+ {pages.map((page) => (
+ <Button component={Link} to={page.to} key={page.name} color="inherit">
+ {page.name}
+ </Button>
+ ))}
+ </Box>
+ </Toolbar>
+ </AppBar>
+ );
+}
+
+export default Bar;