2016-10-23 23:48:06 +13:00
|
|
|
|
|
|
|
|
import React, { PropTypes } from 'react'
|
|
|
|
|
import { Link } from 'react-router'
|
|
|
|
|
|
|
|
|
|
export default class Icon extends React.Component{
|
|
|
|
|
|
|
|
|
|
constructor(props) {
|
|
|
|
|
super(props);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render(){
|
2016-10-24 21:26:01 +13:00
|
|
|
var className = 'icon';
|
|
|
|
|
if( this.props.className ) className += ' '+this.props.className;
|
2016-11-02 16:51:00 +13:00
|
|
|
var src = require('../../assets/icons/'+this.props.name+'.svg');
|
2016-10-24 21:26:01 +13:00
|
|
|
return <img className={className} src={src} />;
|
2016-10-23 23:48:06 +13:00
|
|
|
}
|
|
|
|
|
}
|