add cart API's (add , delete , get)

This commit is contained in:
haniyeroozmand
2026-04-07 10:14:56 +03:30
parent 5504e20948
commit 8be715b34b
14 changed files with 528 additions and 185 deletions

View File

@@ -3,17 +3,6 @@
import { createContext, useContext, useState, useEffect, ReactNode } from 'react';
import { Product } from '@/public/src/types/product';
// export interface Product {
// id: string;
// title: string;
// image: string;
// l: string;
// d: string;
// brand: string;
// price?: string | null;
// badge?: string;
// stock: boolean;
// }
export interface CartItem extends Product {
quantity: number;