import { useContext } from "react";
import { DataTableContext } from "@/lib/contexts/DataTable";

const useTableSetting = () => {
    const { filterData, setFilterData, sortData, setSortData } = useContext(DataTableContext);
    return { filterData, setFilterData, sortData, setSortData };
};

export default useTableSetting;
