1
0
mirror of https://github.com/fazo96/ipfs-boards synced 2025-01-25 14:54:19 +01:00
ipfs-boards/webapp/components/icon.jsx
2015-12-14 00:29:25 +01:00

12 lines
271 B
JavaScript

var React = require('react')
require('font-awesome.min.css')
module.exports = React.createClass({
class: function () {
return 'fa fa-' + this.props.name + ' ' + this.props.className
},
render: function () {
return (<i className={this.class()}></i>)
}
})