import { Component, linkEvent } from 'inferno'; import { Community } from '../interfaces'; import { mdToHtml } from '../utils'; interface SidebarProps { community: Community; } 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.description &&
}
); } }