import {GetServerSideProps, NextPage} from 'next' import Template from '../../../components/templates/RightSidebarLayout' import {POPUP, QUERY} from '../../../utilities/queryKeys' import {USER} from '../../../utilities/popups' type Props = { query: string } const Page: NextPage<Props> = ({query}) => { return ( <Template query={query} userLinkLabel="User" searchQueryKey={QUERY} searchLabel="Search" searchHint="e.g. keywords, names…" popupQueryKey={POPUP} userPopupQueryValue={USER} /> ) } export default Page export const getServerSideProps: GetServerSideProps = async (ctx) => { const {[QUERY]: query = ''} = ctx.query return { props: { query, }, } }