Withrouter en React-Router V6

const push: NavigateFunction = useNavigate()
Restu Wahyu Saputra