cal.pub0.org/packages/features/ee/support/lib/intercom/providerDynamic.tsx

9 lines
238 B
TypeScript
Raw Normal View History

import dynamic from "next/dynamic";
import { Fragment } from "react";
const DynamicIntercomProvider = process.env.NEXT_PUBLIC_INTERCOM_APP_ID
? dynamic(() => import("./provider"))
: Fragment;
export default DynamicIntercomProvider;