import { sectionNames } from "@saleor/intl"; import { asSortParams } from "@saleor/utils/sort"; import { parse as parseQs } from "qs"; import React from "react"; import { useIntl } from "react-intl"; import { Route, RouteComponentProps, Switch } from "react-router-dom"; import { WindowTitle } from "../components/WindowTitle"; import { channelAddPath, channelPath, channelsListPath, ChannelsListUrlQueryParams, ChannelsListUrlSortField } from "./urls"; import ChannelCreateComponent from "./views/ChannelCreate"; import ChannelDetailsComponent from "./views/ChannelDetails"; import ChannelsListComponent from "./views/ChannelsList"; const ChannelDetails: React.FC> = ({ match }) => ; const ChannelsList: React.FC = ({ location }) => { const qs = parseQs(location.search.substr(1)); const params: ChannelsListUrlQueryParams = asSortParams( qs, ChannelsListUrlSortField ); return ; }; export const ChannelsSection: React.FC<{}> = () => { const intl = useIntl(); return ( <> ); }; export default ChannelsSection;