lbry-desktop/ui/page/channelNew/view.jsx
2020-07-01 22:01:48 -04:00

24 lines
562 B
JavaScript

// @flow
import React from 'react';
import ChannelEdit from 'component/channelEdit';
import Page from 'component/page';
import { withRouter } from 'react-router';
type Props = {
history: { goBack: () => void },
};
function ChannelNew(props: Props) {
const { history } = props;
return (
<Page
noSideNavigation
backout={{ backFunction: () => history.goBack(), backTitle: __('Create Channel') }}
className="main--auth-page"
>
<ChannelEdit onDone={history.goBack} />
</Page>
);
}
export default withRouter(ChannelNew);