+
+ Your Cart
+ {selectedPosters.map((poster, index) => (
+
+
+
+ {`Movie ID: ${poster.movieId}`}
+ {poster.posterId}
+ {
+ const newSelected = [...selectedForDownload];
+ newSelected[index] = e.target.checked;
+ setSelectedForDownload(newSelected);
+ }}
+ className={classes.checkbox}
+ />
+ }
+ label="Select for download"
+ className={classes.typography}
+ />
+
+
+
+
+ ))}
+
+
+
+ Download Format
+ setDownloadFormat(e.target.value)}
+ SelectProps={{
+ native: true,
+ }}
+ className={classes.formControl}
+ >
+
+
+
+
+
+
+
+
+
+
+ );
+};
+
+export default Cart;
\ No newline at end of file
diff --git a/src/components/NavBar.js b/src/components/NavBar.js
new file mode 100644
index 0000000..d86c5b7
--- /dev/null
+++ b/src/components/NavBar.js
@@ -0,0 +1,78 @@
+import React from "react";
+import { useSelector } from "react-redux";
+import { AppBar, Toolbar, IconButton, Badge, Button } from '@material-ui/core';
+import { makeStyles } from '@material-ui/core/styles';
+import ShoppingCartIcon from '@material-ui/icons/ShoppingCart';
+import ArrowBackIcon from '@material-ui/icons/ArrowBack';
+import { useNavigate, useLocation } from 'react-router-dom';
+
+const useStyles = makeStyles((theme) => ({
+ appBar: {
+ top: 'auto',
+ bottom: 0,
+ backgroundColor: '#1c1f23',
+ },
+ toolbar: {
+ justifyContent: 'space-between',
+ },
+ backButton: {
+ color: 'white',
+ },
+ cartButton: {
+ color: 'white',
+ },
+ refreshButton: {
+ color: 'white',
+ marginRight: theme.spacing(2),
+ },
+}));
+
+const NavBar = ({onRefreshFiles}) => {
+ const classes = useStyles();
+ const navigate = useNavigate();
+ const location = useLocation();
+ const selectedPosters = useSelector((state) => {
+ const selections = state.posterSelections;
+ return Object.values(selections).flat();
+ });
+
+ const totalSelected = selectedPosters.length;
+
+ const handleBack = () => {
+ navigate(-1);
+ };
+
+ const handleCart = () => {
+ navigate('/Cart');
+ };
+
+ const isPosterSelectorPage = location.pathname !== '/PosterSelector';
+
+ return (
+