feat: add AlwaysOn context for reduced-refresh display mode
This commit is contained in:
parent
73bf363407
commit
c141d5663a
1 changed files with 4 additions and 0 deletions
4
src/contexts/AlwaysOnContext.tsx
Normal file
4
src/contexts/AlwaysOnContext.tsx
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
import { createContext, useContext } from 'react';
|
||||
|
||||
export const AlwaysOnContext = createContext(false);
|
||||
export const useAlwaysOn = () => useContext(AlwaysOnContext);
|
||||
Loading…
Reference in a new issue