datatable reading local storage
This commit is contained in:
9
src/lib/hooks/useTableSetting.jsx
Normal file
9
src/lib/hooks/useTableSetting.jsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import {useContext} from "react";
|
||||
import {TableSettingContext} from "../contexts/tableSetting";
|
||||
|
||||
const useUser = () => {
|
||||
const {settingStore, hideAction, sortAction, filterAction} = useContext(TableSettingContext);
|
||||
return {settingStore, hideAction, sortAction, filterAction};
|
||||
};
|
||||
|
||||
export default useUser;
|
||||
Reference in New Issue
Block a user