"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FormikField = void 0;
var React = require("react");
var formik_1 = require("formik");
var FormikField = function (props) {
    var name = props.name, useField = props.useField, validate = props.validate, children = props.children;
    if (useField) {
        return (React.createElement(formik_1.Field, { name: name, validate: validate }, children));
    }
    else {
        return (React.createElement(formik_1.FastField, { name: name, validate: validate }, children));
    }
};
exports.FormikField = FormikField;
