mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-08-06 05:46:26 +00:00
6 lines
212 B
TypeScript
6 lines
212 B
TypeScript
import React from "react";
|
|
import { UIAppState } from "../types";
|
|
|
|
export const UIAppStateContext = React.createContext<UIAppState>(null!);
|
|
export const useUIAppState = () => React.useContext(UIAppStateContext);
|