lbry-desktop/ui/page/channelNew/view.jsx

25 lines
562 B
React
Raw Normal View History

2020-06-29 21:54:07 +02:00
// @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);