Coalesce the Validation Block and the new Human Interaction Block (#3882)

This commit is contained in:
Jonathan Dobson
2025-11-03 10:01:24 -05:00
committed by GitHub
parent 3cfa43ba6c
commit 4da7b6d4dd
9 changed files with 280 additions and 13 deletions

View File

@@ -0,0 +1,17 @@
import { BlockActionContext } from "@/store/BlockActionContext";
import { useContext } from "react";
function useTransmuteNodeCallback() {
const transmuteNodeCallback =
useContext(BlockActionContext)?.transmuteNodeCallback;
if (!transmuteNodeCallback) {
throw new Error(
"useTransmuteNodeCallback must be used within a BlockActionContextProvider",
);
}
return transmuteNodeCallback;
}
export { useTransmuteNodeCallback };