import { useParams as useParamsRR } from "react-router-dom-v5-compat"; export const useParams = >() => useParamsRR() as T;