export type AddCommentProps = {
  title: string;
  advantage: string[];
  disAdvantage: string[];
  content: string;
  rate: number;
  productId?: string;
};

export type AddQuestionProps = {
  content: string;
  productId?: string;
};

export type SubmitReportProps = {
  productId: string;
  questionIds: string[];
  description?: string;
};

export type ProductStoreType = {
  variantId: string;
  setVariantId: (value: string) => void;
};

export type PriceHistoryItem = {
  shop: string;
  selling_price: number;
  retail_price: number;
  date: string;
};

export type PriceHistory = {
  _id: number;
  product: number;
  title: string;
  history: PriceHistoryItem[];
};

export type PriceHistoryResults = {
  priceHistory: PriceHistory[];
};

export type PriceHistoryResponse = {
  status: number;
  success: boolean;
  results: PriceHistoryResults;
};

export type ProductQuestion = {
  _id: number;
  title: string;
  type: string;
  placeholder: string | null;
  createdAt: string;
  updatedAt: string;
};

export type ProductQuestionsResults = {
  questions: ProductQuestion[];
};

export type ProductQuestionsResponse = {
  status: number;
  success: boolean;
  results: ProductQuestionsResults;
};

export type SaveReportTypes = {
  answers: { questionId: number }[];
  description: string;
  productId: string;
};
