Files
outline/app/components/ProfiledRoute.ts
T
2021-07-04 16:06:23 -04:00

12 lines
229 B
TypeScript

import * as Sentry from "@sentry/react";
import { Route } from "react-router-dom";
import env from "env";
let Component = Route;
if (env.SENTRY_DSN) {
Component = Sentry.withSentryRouting(Route);
}
export default Component;