2021-09-26 21:55:27 +00:00
|
|
|
import { IdProvider } from "@radix-ui/react-id";
|
2021-08-27 12:11:24 +00:00
|
|
|
import { Provider } from "next-auth/client";
|
2021-09-27 14:47:55 +00:00
|
|
|
import { AppProps } from "next/dist/shared/lib/router/router";
|
2021-09-22 19:52:38 +00:00
|
|
|
import React from "react";
|
2021-08-27 12:11:24 +00:00
|
|
|
|
2021-09-24 20:02:03 +00:00
|
|
|
import DynamicIntercomProvider from "@ee/lib/intercom/providerDynamic";
|
|
|
|
|
2021-09-22 19:52:38 +00:00
|
|
|
import { createTelemetryClient, TelemetryProvider } from "@lib/telemetry";
|
|
|
|
|
2021-09-27 14:47:55 +00:00
|
|
|
const AppProviders = (props: AppProps) => {
|
2021-08-27 12:11:24 +00:00
|
|
|
return (
|
|
|
|
<TelemetryProvider value={createTelemetryClient()}>
|
2021-09-27 14:47:55 +00:00
|
|
|
<IdProvider>
|
|
|
|
<DynamicIntercomProvider>
|
|
|
|
<Provider session={props.pageProps.session}>{props.children}</Provider>
|
|
|
|
</DynamicIntercomProvider>
|
|
|
|
</IdProvider>
|
2021-08-27 12:11:24 +00:00
|
|
|
</TelemetryProvider>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
2021-09-30 12:28:30 +00:00
|
|
|
export default AppProviders;
|