--- import Header from '../components/Header.astro'; import Container from '../components/Container.astro'; import { getCart } from '../api'; import { isLoggedIn } from '../models/user'; if(!isLoggedIn(Astro.request)) { return Astro.redirect('/'); } // They must be logged in. const user = { name: 'test'}; // getUser? const cart = await getCart(Astro.request); --- Cart | Online Store

Cart

Hi { user.name }! Here are your cart items:

{cart.items.map(item => )}
Item Count
{item.name} {item.count}