()
| 80 | }; |
| 81 | |
| 82 | const SidebarContent = () => ( |
| 83 | <InventorySidebar items={inventory} |
| 84 | addItem={addItem} |
| 85 | removeItem={removeItem} |
| 86 | currentItems={packItems.map(item => item.id)}/> |
| 87 | ); |
| 88 | |
| 89 | React.useEffect(() => { |
| 90 | dispatch({ type: 'setTitle', value: 'Inventory' }); |