import * as __WEBPACK_EXTERNAL_MODULE__components_Form_FormProvider_mjs__ from "../components/Form/FormProvider.mjs";
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
const useReactHookForm = ()=>{
    const formNextContext = (0, __WEBPACK_EXTERNAL_MODULE_react__.useContext)(__WEBPACK_EXTERNAL_MODULE__components_Form_FormProvider_mjs__.FormContext);
    if (!formNextContext) throw new Error('Please wrap the parent component with FormProvider for useReactHookForm to work');
    return formNextContext;
};
/* ESM default export */ const useReactHookForm_rslib_entry_ = useReactHookForm;
export { useReactHookForm_rslib_entry_ as default };
