This commit is contained in:
2025-10-09 09:02:15 +07:00
parent f7c96a0258
commit 4b11ee2180
4 changed files with 50 additions and 5 deletions

View File

@@ -0,0 +1,22 @@
import React from 'react'
import { useSelector } from 'react-redux'
import type { StoreType } from '../../../stores'
import type { CartItem } from '../../../types/cart.type'
export default function Cart() {
const userStore = useSelector((store: StoreType) => store.user)
return (
<div>
Cart Page
<ul>
{
userStore.cart?.map((item: CartItem) => {
return <li key={item.id}>{item.productId} - {item.quantity}</li>
})
}
</ul>
</div>
)
}