/* "use client" */

import * as React from 'react';
import invariant from 'tiny-warning';
export var FormikContext = /*#__PURE__*/React.createContext(undefined);
FormikContext.displayName = 'FormikContext';
export var FormikProvider = FormikContext.Provider;
export var FormikConsumer = FormikContext.Consumer;
export function useFormikContext() {
  var formik = React.useContext(FormikContext);
  invariant(!!formik, "Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component.");
  return formik;
}