export interface ProductBody {
  status: boolean;
  data: {
    links: {
      previous: null | string;
      next: null | string;
    };
    total_items: number;
    total_pages: number;
    page_size: number;
    current_page: number;
    results: ProductResponse[];
  };
}

export interface ProductResponse {
  id: number;
  title: string;
  description: string;
  company: string;
  files: {
    id: number;
    file: string;
  }[];
  category: { id: number; name: string; icon_name: string | null }[];
}

export interface CompanyBody {
  status: boolean;
  data: {
    links: {
      previous: null | string;
      next: null | string;
    };
    total_items: number;
    total_pages: number;
    page_size: number;
    current_page: number;
    results: CompanyResponse[];
  };
}

export interface CompanyResponse {
  id: number;
  company_name: string | null;
  country_name: string;
  region_name: string;
  district_name: string;
  product_service_company: {
    id: number;
    title: string;
    description: string;
    company: string;
    files: [
      {
        id: number;
        file: string;
      },
    ];
    category: [];
  }[];
}

export interface CountryBody {
  status: boolean;
  data: {
    links: {
      previous: null | string;
      next: null | string;
    };
    total_items: number;
    total_pages: number;
    page_size: number;
    current_page: number;
    results: CountryResponse[];
  };
}

export interface CountryResponse {
  id: number;
  name: string;
  flag: string;
  companies: {
    id: number;
    company_name: string;
    service_count: number;
  }[];
}

export interface States {
  status: boolean;
  data: {
    id: number;
    name: string;
    region: {
      id: number;
      name: string;
      code: string;
      districts: { id: number; name: string; code: string }[];
    }[];
    code: string;
    flag: string;
  }[];
}

export interface Categories {
  status: boolean;
  data: {
    id: number;
    name: string;
    code: string;
    external_id: null | string;
    level: number;
    is_leaf: boolean;
    icon_name: null | string;
  }[];
}

export interface businessAboutRes {
  status: boolean;
  data: {
    links: {
      previous: null | string;
      next: null | string;
    };
    total_items: number;
    total_pages: number;
    page_size: number;
    current_page: number;
    results: { id: number; company_name: string }[];
  };
}

export interface businessAboutDetailRes {
  status: boolean;
  data: businessAboutDetailResData;
}

export interface businessAboutDetailResData {
  company_name: string;
  director_full_name: string;
  company_image: null | string;
  phone: string;
  product_service_company: {
    title: string;
    description: string;
    category: { id: number; name: string; icon_name: string }[];
    files: {
      file: string;
    }[];
  }[];
}
