'use client'; import { useParams } from 'next/navigation'; export function withRouter(Children) { return (props) => { const match = { params: useParams() }; return } }