import { useContext } from 'react' import Top5Item from './Top5Item.js' import List from '@mui/material/List'; import { Typography } from '@mui/material' import { GlobalStoreContext } from '../store/index.js' /* This React component lets us edit a loaded list, which only happens when we are on the proper route. @author McKilla Gorilla */ function WorkspaceScreen() { const { store } = useContext(GlobalStoreContext); let editItems = ""; if (store.currentList) { editItems = { store.currentList.items.map((item, index) => ( )) } ; } return (
1.
2.
3.
4.
5.
{editItems}
) } export default WorkspaceScreen;