export interface CategoryItem {
  _id: string;
  name: string;
  image: string;
  promotionalText: string | null;
  slug: string;
  shortDescription: string;
  price: string;
  quantity: string;
  includeInNav: boolean;
  title?: string;
  menu?: CategoryItem[];
}

export interface ParentCategoryItem {
  name: string;
  slug: string;
  image: string;
  includeInNav: boolean;
}
export interface MenuDataItem {
  menu: CategoryItem[];
  parentId: ParentCategoryItem;
  title: string;
  name?: string;
  slug?: string;
  includeInNav: boolean;
}
export interface MenuCategory {
  _id: string;
  name: string;
  slug: string;
  data: MenuDataItem[];
  includeInNav: boolean;
  banner: string;
}

export interface HeaderResponse {
  status: boolean;
  data: [];
}

export interface ProductMenuResponse {
  success: boolean;
  data: MenuDataItem[];
}
export interface BannerResponse {
  success: boolean;
  status?: boolean;
  data: BannerModel[];
}

export interface BannerModel {
  title: string;
  subTitle: string;
  image: string;
  ctaText: string;
  link: string;
  mobileImage: string;
  position: number;
  status: boolean;
}

export interface HolidayModel {
  _id: string;
  holidayDay: number;
  holidayMonth: number;
  description: string;
  holidayDate: string;
}

export interface HolidayResponse {
  data: HolidayModel[];
}

export interface DeliveryTimeModel {
  isHoliday: boolean;
  startTime: string;
  endTime: string;
  _id: string;
  day: string;
}

export interface DeliveryTimeResponse {
  data: DeliveryTimeModel[];
}

export interface FAQItem {
  _id: string;
  categoryQuestion: string;
  categoryAnswer: string;
  status: boolean;
  position: number | string;
}

export interface FAQCategory {
  _id: string;
  name: string;
  categoryImage?: string;
  status: boolean;
  position: number;
  questions: FAQItem[];
}

export interface SubscribeResponse {
  status: boolean;
  message: string;
  success?: boolean;
}

export interface HelpAndIdeasItem {
  name: string;
  url: string;
}

export interface MenuProps {
  headerData: MenuCategory[];
  helpAndIdeasMenuData: HelpAndIdeasItem[];
}
import type { IndustryItem } from "./industry";
export interface IndustryResponse {
  success: boolean;
  status?: boolean;
  message?: string;
  data: IndustryItem[];
}
export interface ContactFormRequest {
  firstname: string;
  lastname: string;
  email: string;
  subject: string;
  description: string;
}

export interface ContactFormResponse {
  status: boolean;
  message: string;
  success?: boolean;
}

declare global {
  interface Window {
    dataLayer: unknown[];
  }
}

export type ContentPageResponse = {
  success: boolean;
  data: {
    slug: string;
    content: string;
  }
};
