/**
 * Icon for font awesome.
 * @class ApIonIcon
 */

'use strict'

import React, {PropTypes as types} from 'react'
import classnames from 'classnames'
import ApIcon from './ap_icon'

/** @lends ApIonIcon */
const ApIonIcon = React.createClass({

  // --------------------
  // Specs
  // --------------------

  propTypes: {
    type: types.string.isRequired
  },

  mixins: [],

  statics: {},

  getInitialState () {
    return {}
  },

  getDefaultProps () {
    return {
      type: null
    }
  },

  render () {
    const s = this
    let { props } = s

    return (
      <ApIcon className={ classnames('ap-ion-icon', 'ion', props.className,
             `ion-${props.type}`) }
              style={ Object.assign({}, props.style) }>
      </ApIcon>
    )
  }
})

export default ApIonIcon
