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 Forum - Lemmy"; } render() { return (
Create Forum
) } handleCommunityCreate(community: Community) { this.props.history.push(`/f/${community.name}`); } }