BrixCafe/constants/types.ts
2025-04-25 16:29:39 +01:00

35 lines
621 B
TypeScript

export interface Product {
id: string;
productName: string;
image: string;
description: string;
price: string;
inStock: boolean;
}
export interface CartItem {
id: string;
name: string;
price: number;
quantity: number;
image: string;
}
export interface CartState {
items: CartItem[];
total: number;
}
export interface Order {
id: string;
orderId:string,
items: OrderItem[];
status: string;
timeAgo: string;
userId: string;
createdAt: Date;
}
export interface OrderItem {
name: string;
quantity: number;
}