import { parse as parseQs } from "qs"; import React from "react"; import { useIntl } from "react-intl"; import { Route, RouteComponentProps, Switch } from "react-router-dom"; import { sectionNames } from "@saleor/intl"; import { WindowTitle } from "../components/WindowTitle"; import { serviceListPath, ServiceListUrlQueryParams, servicePath, ServiceUrlQueryParams } from "./urls"; import ServiceDetailsComponent from "./views/ServiceDetails"; import ServiceListComponent from "./views/ServiceList"; const ServiceList: React.FC = ({ location }) => { const qs = parseQs(location.search.substr(1)); const params: ServiceListUrlQueryParams = qs; return ; }; const ServiceDetails: React.FC> = ({ match }) => { const qs = parseQs(location.search.substr(1)); const params: ServiceUrlQueryParams = qs; return ( ); }; const ServiceSection = () => { const intl = useIntl(); return ( <> ); }; export default ServiceSection;