import { parse as parseQs } from "qs"; import React from "react"; import { Route, RouteComponentProps, Switch } from "react-router-dom"; import { WindowTitle } from "../components/WindowTitle"; import i18n from "../i18n"; import { pageCreatePath, pageListPath, PageListUrlQueryParams, pagePath, PageUrlQueryParams } from "./urls"; import PageCreate from "./views/PageCreate"; import PageDetailsComponent from "./views/PageDetails"; import PageListComponent from "./views/PageList"; const PageList: React.StatelessComponent> = ({ location }) => { const qs = parseQs(location.search.substr(1)); const params: PageListUrlQueryParams = qs; return ; }; const PageDetails: React.StatelessComponent> = ({ match }) => { const qs = parseQs(location.search.substr(1)); const params: PageUrlQueryParams = qs; return ( ); }; const Component = () => ( <> ); export default Component;