import React, { useContext,useState, useEffect } from "react";
import usersService from "../services/UsersService";
import MyReviewDueJobs from "../components/MyActiveJobs/MyReviewDueJobs";

export default function MyReviewDueJobsPage() {
    const commonHeadData =()=>{
        console.log("COMMON HEAD DATA ----------------=====---------------------");
        return 0;
    }
    const [MyJobList, setMyJobList] = useState([]);
    const api = new usersService();
    const getMyJobList = async () => {
        try {
            const res = await api.getMyReviewDueJobList();
            setMyJobList(res.data);
        } catch (error) {
            console.log("Error getting mode");
        }
    };
    useEffect(() => {
        getMyJobList();
    }, []);

    // debugger;
    return (
        <>
            <MyReviewDueJobs
                MyJobList={MyJobList}
                commonHeadData={commonHeadData}
            />
        </>
    );
}
