2026-08-15 14:46:19 +03:00

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} />
}
}