export interface Photo { photo?: string; video?: string; url: string; type?: string; } export interface Callback { rating?: number; content?: string; userID?: string; answer?: string; timestamp?: string; } export interface Question { question: string; answer: string; upvotes: number; downvotes: number; } export interface Item { categoryID: number; itemID: number; name: string; photos: Photo[] | null; description: string; currency: string; price: number; discount: number; remainings?: string; rating: number; callbacks: Callback[] | null; questions: Question[] | null; partnerID?: string; quantity?: number; // For cart items } export interface CartItem extends Item { quantity: number; }