This commit is contained in:
2025-10-09 09:45:37 +07:00
parent 55e49096c5
commit b237658bb9
4 changed files with 32 additions and 12 deletions

View File

@@ -2,11 +2,28 @@ import React from 'react'
import { useSelector } from 'react-redux'
import type { StoreType } from '../../../stores'
import type { CartItem } from '../../../types/cart.type'
import { Apis } from '../../../apis'
import type { Product } from '../../../types/product.type'
export default function Cart() {
const userStore = useSelector((store: StoreType) => store.user)
//
//đây là api lấy product id let data = Apis.product.findProductById(productId)
// data có interface là Product
// cho bạn interface product luôn
/*
export interface Product {
id: string;
categoryId: string;
price: number;
iconUrl: string;
isActive: boolean;
name: string;
des: string;
}
*/
return (
<div>
Cart Page