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
