import { createContext, useState } from "react";

export const ReloadDataTableContext = createContext();

export const ReloadDataTableProvider = ({ children }) => {
  const [reloadDataTable, setReloadDataTable] = useState(false);

  return (
    <ReloadDataTableContext.Provider
      value={{ reloadDataTable, setReloadDataTable }}
    >
      {children}
    </ReloadDataTableContext.Provider>
  );
};
