export type ItemServiceType = {
  author: string;
  createDate: string;
  createdAt: string;
  description: string;
  icon: string;
  id: string;
  isActive: boolean;
  isDanakSuggest: boolean;
  link: string;
  metaDescription: string;
  name: string;
  serviceLanguage: string;
  softwareLanguage: string;
  updatedAt: string;
  userCount: number;
  title: string;
  slug: string;
};

export type CategoryItemType = {
  createdAt: string;
  icon: string;
  id: string;
  isActive: boolean;
  parentId: string | null;
  title: string;
  updatedAt: string;
};

export type ServiceDetailDataType = {
  author: string;
  createDate: string;
  createdAt: string;
  description: string;
  icon: string;
  id: string;
  images: { id: string; createdAt: string; imageUrl: string }[];
  videos: { id: string; createdAt: string; videoUrl: string }[];
  audios: { id: string; createdAt: string; audioUrl: string }[];
  isActive: boolean;
  isDanakSuggest: boolean;
  link: string;
  metaDescription: string;
  name: string;
  serviceLanguage: string;
  softwareLanguage: string;
  subscriptionPlans: any[];
  updatedAt: string;
  userCount: number;
  title: string;
  slug: string;
};

export type PlanItemType = {
  createdAt: string;
  discounts: {
    amount: number;
    calculationType: string;
    code: string;
    createdAt: string;
    endDate: string;
    id: string;
    isActive: boolean;
    startDate: string;
    title: string;
    type: string;
  }[];
  duration: number;
  id: string;
  isActive: boolean;
  name: string;
  price: number;
  updatedAt: string;
  originalPrice: number;
};

// export type BuyServiceType = {
//   planId: string;
//   serviceId: string;
// };

export type MyServicesItem = {
  createdAt: string;
  endDate: string;
  id: string;
  isCanceled: boolean;
  businessName: string;
  plan: {
    id: string;
    createdAt: string;
    duration: number;
    isActive: boolean;
    status: "ACTIVE" | "INACTIVE";
    name: string;
    price: number;
    service: {
      author: string;
      createDate: string;
      createdAt: string;
      description: string;
      icon: string;
      id: string;
      isActive: boolean;
      isDanakSuggest: boolean;
      link: string;
      metaDescription: string;
      name: string;
      serviceLanguage: string;
      softwareLanguage: string;
      title: string;
      updatedAt: string;
      userCount: number;
      slug: string;
    };
  };
  startDate: string;
  status: string;
  updatedAt: string;
};

export type BuyServiceType = {
  planId: string;
  businessName: string;
  businessPhone?: string;
  description?: string;
  serviceId: string;
};

export type CreateReviewType = {
  id: string;
  comment: string;
  rating?: number;
  title: string;
};

export type ReviewItemType = {
  comment: string;
  createdAt: string;
  id: string;
  rating: number;
  status: "APPROVED" | "PENDING" | "REJECTED";
  title: string;
  user: {
    id: string;
    firstName: string;
    lastName: string;
    profilePic: string | null;
  };
};
