content: import PropTypes from 'prop-types'
  import React from 'react'
  
  import propTypes from '../../prop-types'
  import cn from '../../lib/class-names'
  
  import Icon from '../icon'
  
  const IconLink = ({classNames, icon, disabled = false, href = '#', onClick = () => {}}) => (
    <a
      className={cn('IconLink', {}, classNames)}
      aria-disabled={disabled}
      onClick={onClick}
      href={href}
    >
      <Icon source={icon} />
    </a>
  )
  
  IconLink.propTypes = {
    ...propTypes.component,
    icon: PropTypes.shape({
      id: PropTypes.string
    }).isRequired,
    disabled: PropTypes.bool,
    onClick: PropTypes.func,
    href: PropTypes.string
  }
  
  export default IconLink
  