1ed53b153c
* build: enable consistent type imports eslint rule * change to warn * fix the warning in example and excalidraw-app * fix packages * enable type annotations and throw error for the rule
6 lines
217 B
TypeScript
6 lines
217 B
TypeScript
import React from "react";
|
|
import type { UIAppState } from "../types";
|
|
|
|
export const UIAppStateContext = React.createContext<UIAppState>(null!);
|
|
export const useUIAppState = () => React.useContext(UIAppStateContext);
|