9 lines
223 B
TypeScript
9 lines
223 B
TypeScript
import { createContext } from "react";
|
|
|
|
interface GlobalActions {
|
|
undo: () => void;
|
|
redo: () => void;
|
|
doHighlight: {[key:string]: () => void};
|
|
}
|
|
|
|
export const CommandContext = createContext<GlobalActions|null>(null);
|