content: import cx from 'classnames'
  import _ from 'lodash'
  import PropTypes from 'prop-types'
  import React from 'react'
  
  import {
    customPropTypes,
    getElementType,
    getUnhandledProps,
    META,
    SUI,
  } from '../../lib'
  
  /**
   * Several icons can be used together as a group.
   */
  function IconGroup(props) {
    const { children, className, size } = props
    const classes = cx(
      size,
      'icons',
      className
    )
    const rest = getUnhandledProps(IconGroup, props)
    const ElementType = getElementType(IconGroup, props)
  
    return <ElementType {...rest} className={classes}>{children}</ElementType>
  }
  
  IconGroup._meta = {
    name: 'IconGroup',
    parent: 'Icon',
    type: META.TYPES.ELEMENT,
  }
  
  IconGroup.propTypes = {
    /** An element type to render as (string or function). */
    as: customPropTypes.as,
  
    /** Primary content. */
    children: PropTypes.node,
  
    /** Additional classes. */
    className: PropTypes.string,
  
    /** Size of the icon group. */
    size: PropTypes.oneOf(_.without(SUI.SIZES, 'medium')),
  }
  
  IconGroup.defaultProps = {
    as: 'i',
  }
  
  export default IconGroup
  