
* Adds react-use-intercom * Adds intercom env var * Loads intercom dynamically if env is set * CAL-473 Fixes client-side routing for authed pages * Moves intercom code to ee Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
8 lines
253 B
TypeScript
8 lines
253 B
TypeScript
import { FC } from "react";
|
|
import { IntercomProvider } from "react-use-intercom";
|
|
|
|
const Provider: FC = ({ children }) => (
|
|
<IntercomProvider appId={process.env.NEXT_PUBLIC_INTERCOM_APP_ID!}>{children}</IntercomProvider>
|
|
);
|
|
|
|
export default Provider;
|