import { Component } from 'inferno'; import { CommunityForm } from './community-form'; import { Community } from '../interfaces'; import { WebSocketService } from '../services'; export class CreateCommunity extends Component { constructor(props: any, context: any) { super(props, context); this.handleCommunityCreate = this.handleCommunityCreate.bind(this); } componentDidMount() { document.title = `Create Community - ${WebSocketService.Instance.site.name}`; } render() { return (
Create Community
) } handleCommunityCreate(community: Community) { this.props.history.push(`/c/${community.name}`); } }