mirror of
https://github.com/lux-tel/session-desktop.git
synced 2026-10-30 20:33:24 +00:00
11 lines
274 B
TypeScript
11 lines
274 B
TypeScript
import { useSelector } from 'react-redux';
|
|
import type { StateType } from '../reducer';
|
|
|
|
const getDebugMode = (state: StateType): boolean => {
|
|
return state?.debug?.debugMode || false;
|
|
};
|
|
|
|
export const useDebugMode = (): boolean => {
|
|
return useSelector(getDebugMode);
|
|
};
|