9 lines
230 B
JavaScript
9 lines
230 B
JavaScript
'use client';
|
|
import { useParams } from 'next/navigation';
|
|
|
|
export function withRouter(Children) {
|
|
return (props) => {
|
|
const match = { params: useParams() };
|
|
return <Children {...props} match={match} />
|
|
}
|
|
} |