var React = require('react')
var Icon = require('icon.jsx')
var Link = require('react-router').Link
module.exports = function(boards){
return React.createClass({
getInitialState: function(){
return { }
},
componentDidMount: function(){
if(this.props.id) boards.getProfile(this.props.id, (err,res) => {
if(!this.isMounted()) return true
if(!err) {
this.setState({ name: res.name || 'Unknown Name' })
}
})
},
getContent: function(){
if(this.state.name){
return (