import React from 'react' import { useRouter } from 'next/router' import { serverSideTranslations } from 'next-i18next/serverSideTranslations' import Party from '~components/Party' const PartyRoute: React.FC = () => { const { party: slug } = useRouter().query return (
) // function renderNotFound() { // return ( //
//

There's no grid here.

// //
// ) // } // if (!found && !loading) { // return renderNotFound() // } else if (found && !loading) { // return render() // } else { // return (
) // } } export async function getStaticPaths() { return { paths: [ // Object variant: { params: { party: 'string' } }, ], fallback: true, } } export async function getStaticProps({ locale }: { locale: string }) { return { props: { ...(await serverSideTranslations(locale, ['common'])), // Will be passed to the page component as props }, } } export default PartyRoute