import { BaseResponse } from "@/app/[name]/(Main)/types/Types";

/** محصول تو در تو در پاسخ API علاقه‌مندی‌ها */
export interface FavoriteProduct {
  id: string;
  createdAt: string;
  updatedAt: string;
  deletedAt: string | null;
  shop: string;
  category: string;
  attribute: string | null;
  title: string;
  desc: string;
  order: number | null;
  isActive: boolean;
  images: string[];
  score: number;
  discount: number;
  isSpecialOffer: boolean;
  price: number | null;
}

export interface Favorite {
  id: string;
  createdAt: string;
  updatedAt: string;
  deletedAt: string | null;
  user: string;
  product: FavoriteProduct;
}

export type FavoritesResponse = BaseResponse<Favorite[]>;

