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