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

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

export default useTableSetting;
