1
0
mirror of https://github.com/fazo96/ipfs-boards synced 2025-02-04 16:34:19 +01:00
ipfs-boards/webapp/components/icon.jsx

11 lines
239 B
React
Raw Permalink Normal View History

2015-11-20 20:21:54 +01:00
var React = require('react')
module.exports = React.createClass({
class: function () {
return 'fa fa-' + this.props.name + ' ' + this.props.className
2015-11-20 20:21:54 +01:00
},
render: function () {
return (<i className={this.class()}></i>)
2015-11-20 20:21:54 +01:00
}
})