var ReactBootstrap = require('react-bootstrap') , NavItem = ReactBootstrap.NavItem , Nav = ReactBootstrap.Nav , ListGroup = ReactBootstrap.ListGroup , ListGroupItem = ReactBootstrap.ListGroupItem , Panel = ReactBootstrap.Panel , Glyphicon = ReactBootstrap.Glyphicon , Button = ReactBootstrap.Button var React = require('react'); var ReactCSSTransitionGroup = require('react-addons-css-transition-group'); var Post = require("../common/Post.js"); module.exports = Postboard = React.createClass({ render: function() { var activeAccount = this.props.activeAccount; var posts = this.props.data.map(function(post, index) { return ( ); }); if (this.props.loading) { var spinner = (

); } else { var spinner = (); } return ( {this.props.header} {spinner} {posts} ); } });