'use strict';

var FormNextProvider = require('../components/FormNext/FormNextProvider.cjs');
var react = require('react');

const useFormNext = () => {
  const formNextContext = react.useContext(FormNextProvider.FormNextContext);
  if (!formNextContext) {
    throw new Error(
      "Please wrap the parent component with FormNextProvider for useFormNext to work"
    );
  }
  return formNextContext;
};

module.exports = useFormNext;
//# sourceMappingURL=useFormNext.cjs.map
