/**
 * IconLabel component
 *
 * Generated by coz on 2016-12-11,
 * from a template provided by apeman-asset-templates.
 *
 * @function IconLabel
 */
'use strict'

import React from 'react'
import defineDebug from 'debug'
import classnames from 'classnames'

const debug = defineDebug('project:fragment:icon-label')

/** @lends IconLabel */
const IconLabel = ({ className, icon, text, children }) => (
  <label className={ classnames('icon-label', className) }>
    <i className={ classnames(icon, 'icon-label-icon')}/>
    <span className="icon-label-text">{ text }</span>
    { children }
  </label>
)

export default IconLabel
