const classNames = require('classnames'); const PropTypes = require('prop-types'); const React = require('react'); import {Field} from 'formik'; const ValidationMessage = require('../forms/validation-message.jsx'); require('../forms/row.scss'); require('./formik-input.scss'); const FormikInput = ({ className, error, onSetRef, toolTip, validationClassName, wrapperClassName, ...props }) => (
{error ? ( ) : toolTip && ( )}
); FormikInput.propTypes = { className: PropTypes.string, // error and toolTip can be false, in which case we ignore them error: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]), onSetRef: PropTypes.func, toolTip: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]), type: PropTypes.string, validationClassName: PropTypes.string, wrapperClassName: PropTypes.string }; module.exports = FormikInput;