var React = require('react') var Markdown = require('markdown.jsx') var Icon = require('icon.jsx') var Clock = require('clock.jsx') var Link = require('react-router').Link module.exports = function(boardsAPI){ var UserID = require('userID.jsx')(boardsAPI) return React.createClass({ getInitialState: function(){ return { moment: false } }, componentDidMount: function(){ require.ensure(['moment'],_ => { if(this.isMounted()) this.setState({ moment: require('moment') }) }) }, getPermalink: function(){ if(this.props.adminID && this.props.board && this.props.post && this.props.comment.hash){ return