Function useDisplayMode

Source
useDisplayMode<T extends string>(): T

Hook to get the display mode

The useDisplayMode hook returns the current display mode, and subscribes to changes.

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>;