useParams.tsx 153 B

123456
  1. import {useRouteContext} from 'sentry/utils/useRouteContext';
  2. export function useParams() {
  3. const route = useRouteContext();
  4. return route.params;
  5. }