Files
iNaturalistReactNative/src/sharedHooks/useDebugMode.ts
T
Ryan Stelly 1c2fa62d1d Use zustand for debug mode state (#3556)
* add debugMode layout state and use for hook

* don't return toggle from GP hook

* fix four bad isDebugMode calls

* fix 6 more bad isDebugMode calls

* move non-hook debugMode check to local where it's needed
2026-04-27 09:41:20 -05:00

11 lines
225 B
TypeScript

import useStore from "stores/useStore";
const useDebugMode = ( ): { isDebug: boolean } => {
const isDebug = useStore( state => state.layout.debugModeEnabled );
return {
isDebug,
};
};
export default useDebugMode;