// @flow import React from 'react'; import ChannelEdit from 'component/channelEdit'; import Page from 'component/page'; import { withRouter } from 'react-router'; import * as PAGES from 'constants/pages'; type Props = { history: { push: string => void, goBack: () => void }, }; function ChannelNew(props: Props) { const { history } = props; return ( history.goBack(), title: __('Create Channel') }} className="main--auth-page" > history.push(`/$/${PAGES.CHANNELS}`)} /> ); } export default withRouter(ChannelNew);