const logger = require('hexo-log')(); const { Component } = require('inferno'); module.exports = class extends Component { render() { const { config, page, helper } = this.props; const { __ } = helper; const { comment } = config; if (!comment || typeof comment.type !== 'string') { return null; } return

{__('article.comments')}

{(() => { try { const Comment = require('../comment/' + comment.type); return ; } catch (e) { logger.w(`Icarus cannot load comment "${comment.type}"`); return null; } })()}
; } };