/**
 * Values suitable for use within `propTypes` of components.
 *
 * @module higherform
 */

import { PropTypes } from 'react';

export const FormShape = PropTypes.shape({
    validate: PropTypes.func,
    errors: PropTypes.objectOf(PropTypes.arrayOf(PropTypes.string)),
});

export const FieldShape = PropTypes.object;

export const FieldsShape = PropTypes.objectOf(FieldShape);

/**
 * Values suitable for use within `propTypes` of components.
 *
 * @module higherform
 */

import { PropTypes } from 'react';

export const FormShape = PropTypes.shape({
    submit: PropTypes.func,
    errors: PropTypes.object,
});

export const FieldShape = PropTypes.object;

export const FieldsShape = PropTypes.objectOf(FieldShape);

Use the Correct PropTypes for the FormShape
Use the Correct PropTypes for the FormShape
