selecting hints and proof steps

This commit is contained in:
Jon Eugster
2023-07-14 18:14:21 +02:00
parent d0316b734a
commit d40fd1d6cb
5 changed files with 72 additions and 15 deletions
+10
View File
@@ -62,6 +62,16 @@ export const ProofStateContext = React.createContext<{
setProofState: () => {},
});
/** Context to keep highlight selected proof step and corresponding chat messages. */
export const SelectionContext = React.createContext<{
selectedStep : number,
setSelectedStep: React.Dispatch<React.SetStateAction<number>>
}>({
selectedStep : undefined,
setSelectedStep: () => {}
})
export const InputModeContext = React.createContext<{
commandLineMode: boolean,
setCommandLineMode: React.Dispatch<React.SetStateAction<boolean>>,