var React = require('react');
var Button = require('react-bootstrap/lib/Button');
var ButtonGroup = require('react-bootstrap/lib/ButtonGroup');
var MenuStore = require('../stores/MenuStore');
var MenuActions = require('../actions/MenuActions');
var MiddlePanelActions = require('../actions/MiddlePanelActions');
var FeedItem = React.createClass({
propTypes: {feed_id: React.PropTypes.number.isRequired,
title: React.PropTypes.string.isRequired,
unread: React.PropTypes.number.isRequired,
icon_url: React.PropTypes.string,
},
getInitialState: function() {
return {feed_id: this.props.feed_id,
title: this.props.title,
unread: this.props.unread,
icon_url: this.props.icon_url,
};
},
render: function() {
var unread = undefined;
var icon = undefined;
if(this.state.icon_url){
icon = ();
} else {
icon = ();
}
if(this.state.unread){
unread = (
{this.state.unread}
);
}
return (