import PropTypes from 'prop-types';
import React from 'react'
const FormFieldCheckbox = ({ disabled, input, id, label, type, children, meta: { touched, error } }) => (
{touched && error && {error}}
);
FormFieldCheckbox.propTypes = {
children: PropTypes.oneOfType([
PropTypes.node,
PropTypes.arrayOf(PropTypes.node)
]),
disabled: PropTypes.bool,
id: PropTypes.string,
input: PropTypes.shape(),
label: PropTypes.string,
meta: PropTypes.shape({
error: PropTypes.string,
touched: PropTypes.bool
}),
type: PropTypes.string
}
export default FormFieldCheckbox;