export function useHomeService() {
  const { apiFetch } = useApi()

  return {
    getVendor() {
      return apiFetch('/home/vendor')
    },

    getTestimonials() {
      return apiFetch('/home/testimonials')
    },

    getDeals() {
      return apiFetch('/home/deals')
    },

    getBestSelling() {
      return apiFetch('/home/best-selling')
    },

    getCategories() {
      return apiFetch('/home/categories')
    },

    getSliders() {
      return apiFetch('/home/sliders')
    },

    getAbout() {
      return apiFetch('/home/about')
    },

    getHowItWorks() {
      return apiFetch('/home/how-it-works')
    },

    footerCategories() {
      return apiFetch('/footer/categories')
    },

    footerAbout() {
      return apiFetch('/footer/about')
    },

    footerSocials() {
      return apiFetch('/footer/socials')
    },
  }
}
