import { useSelector } from "react-redux";
import Layout from "../Partials/Layout";
import CommonHead from "../UserHeader/CommonHead";
import MainSection from "./MainSection";

export default function MarketPlace({ commonHeadData }) {
  let { jobLists } = useSelector((state) => state.jobLists);
  const marketData = jobLists?.result_list;
  const categories = jobLists?.categories;

  return (
    <>
      <Layout>
        <CommonHead commonHeadData={commonHeadData} />
        <MainSection
          marketPlaceProduct={marketData}
          categories={categories}
          className="mb-10"
        />
      </Layout>
    </>
  );
}
