I am trying to get URL paramters in a NextJS component: http://...../page?id=1
I tried this:
export default function Page() {
const route = useRouter()
const params = route.params
const id = params.get('id')
but unfortunately, 'params' is always empty. Does anyone know why or a different way of how to get the 'id' parameter