useDisplayMode<T extends string>(): T
Hook to get the display mode
The useDisplayMode hook returns the current display mode, and subscribes to changes.
useDisplayMode
You should make a custom typed export to make sure it's type safe.
import { useDisplayMode as pureUseDisplayMode } from "@pistonite/celera";export const useDisplayMode = pureUseDisplayMode<MyDisplayMode>; Copy
import { useDisplayMode as pureUseDisplayMode } from "@pistonite/celera";export const useDisplayMode = pureUseDisplayMode<MyDisplayMode>;
Hook to get the display mode
Display mode
The
useDisplayModehook returns the current display mode, and subscribes to changes.You should make a custom typed export to make sure it's type safe.