import React, {useState, useEffect} from 'react'
import Home from "../components/Home";
import usersService from "../services/UsersService";
export default function HomePages() {

   // const [marketActiveJobList, setMarketActiveJobList] = useState([]);
    const [bannerList, setBannerList] = useState([]);
    const api = new usersService();

    const getHeroJBannersList = async () => {
        try {
            const res = await api.getHeroJBanners();
           // console.log("BANNERS->",res.data);
            setBannerList(res.data?.result_list);
        } catch (error) {
            console.log("Error getting BANNERS....");
        }
    };
    useEffect(() => {
        getHeroJBannersList();
    }, []);

  return (
    <>
      <Home
          bannerList={bannerList}
      />
    </>
  );
}
