MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / useIntercom

Function useIntercom

console/src/hooks/useIntercom.ts:25–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25export function useIntercom() {
26 const { intercomJwt } = useIntercomJwt();
27 const jwt = intercomJwt?.jwt;
28
29 useEffect(() => {
30 if (jwt) {
31 Intercom({ app_id: APP_ID, intercom_user_jwt: jwt });
32 }
33 }, [jwt]);
34}
35
36export default useIntercom;

Callers 1

CloudAppInitializerFunction · 0.85

Calls 1

useIntercomJwtFunction · 0.90

Tested by

no test coverage detected