import { Component, linkEvent } from 'inferno'; import { Link } from 'inferno-router'; import { Community, CommunityUser } from '../interfaces'; import { mdToHtml } from '../utils'; interface SidebarProps { community: Community; moderators: Array; } interface SidebarState { } export class Sidebar extends Component { constructor(props, context) { super(props, context); } render() { let community = this.props.community; return (

{community.title}

  • {community.category_name}
  • {community.number_of_subscribers} Subscribers
  • {community.number_of_posts} Posts
  • {community.number_of_comments} Comments
{community.description &&

}
Moderators
{this.props.moderators.map(mod => {mod.user_name} )}
); } }