add cart API's (add , delete , get)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user