import React from 'react'; import {Cart} from "./Cart.jsx"; import {CrateMode} from "./CrateMode.jsx"; import {CrateWarnings} from "./CrateWarnings.jsx"; import {useShopStore} from "./shop_store"; import {TriggerCrateWarnings} from "./warnings"; /** * Component that displays the main crate with reminder rules. * It includes and rules */ export function Crate({crate_index}) { const { onDeleteCrate, crate } = useShopStore(state => ({ onDeleteCrate: state.delCrate, crate: state.crates[crate_index] })) return (
Delete crate
); }