content: import _ from 'lodash';
  import React from 'react';
  import PropTypes from 'prop-types';
  import withErrors from './utils/withErrors';
  /**
   * ErrorHolder
   */
  class ErrorHolder extends React.Component {
    static displayName = 'ErrorHolder';
    static propTypes = {
      className: PropTypes.string,
      errors: PropTypes.object,
      children: PropTypes.any,
    };
    static defaultProps = {};
  
    /**
     * @override
     */
    render() {
      return (
        <div className="error-holder">
          {this.props.errors.map((error, index) => {
            return (
              <div className={this.props.className} key={index}>
                {this.props.children} {error}
              </div>
            );
          })}
        </div>
      );
    }
  }
  
  export default withErrors(ErrorHolder);
  