@dndbuilder.com/react
Version:
Drag and drop builder for React
13 lines (12 loc) • 309 B
JavaScript
import { ActionContext as o } from "../contexts/action-context.js";
import { useContext as r } from "react";
const i = () => {
const t = r(o);
if (!t)
throw new Error("useAction must be used within a ActionProvider");
return t;
};
export {
i as useAction
};
//# sourceMappingURL=use-action.js.map