mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
13 lines
359 B
TypeScript
13 lines
359 B
TypeScript
|
// hooks
|
||
|
import useLocalStorage from "@/hooks/use-local-storage";
|
||
|
|
||
|
export const usePageFilters = () => {
|
||
|
const { storedValue: isFullWidth, setValue: setFullWidth } = useLocalStorage<boolean>("page_full_width", true);
|
||
|
const handleFullWidth = (value: boolean) => setFullWidth(value);
|
||
|
|
||
|
return {
|
||
|
isFullWidth: !!isFullWidth,
|
||
|
handleFullWidth,
|
||
|
};
|
||
|
};
|