Coalesce the Validation Block and the new Human Interaction Block (#3882)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { createContext } from "react";
|
||||
|
||||
type DeleteNodeCallback = (id: string) => void;
|
||||
type TransmuteNodeCallback = (id: string, nodeName: string) => void;
|
||||
type ToggleScriptForNodeCallback = (opts: {
|
||||
id?: string;
|
||||
label?: string;
|
||||
@@ -10,6 +11,7 @@ type ToggleScriptForNodeCallback = (opts: {
|
||||
const BlockActionContext = createContext<
|
||||
| {
|
||||
deleteNodeCallback: DeleteNodeCallback;
|
||||
transmuteNodeCallback: TransmuteNodeCallback;
|
||||
toggleScriptForNodeCallback?: ToggleScriptForNodeCallback;
|
||||
}
|
||||
| undefined
|
||||
|
||||
Reference in New Issue
Block a user