eactiveElement } = cami;

  const CartStore = cami.store({
    cartItems: [],
  },
  {
    name: 'CartStore',
    expiry: 1000 * 60 * 60 * 24 * 3
  }); // 3 days
  // CartStore.reset() // if for some reason, you want to reset the store

  CartStore.register('add', (state, payload) => {
    const newItem = {...payload, id: Date.now()}; // lame way to generate a unique id
    state.cartItems.push(newItem);
  });

  CartStore.register('remove', (state, payload) => {
    state.cartItems = state.cartItems.filter