2
0
Files
bot/apps/builder/components/shared/SupportBubble.tsx

20 lines
487 B
TypeScript
Raw Normal View History

2022-02-14 11:33:38 +01:00
import { useRouter } from 'next/router'
import React, { useEffect } from 'react'
import { initBubble } from 'typebot-js'
export const SupportBubble = () => {
const router = useRouter()
useEffect(() => {
initBubble({
publishId: 'typebot-support',
viewerHost: process.env.NEXT_PUBLIC_VIEWER_HOST,
backgroundColor: '#ffffff',
button: { color: '#0042DA' },
})
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [router])
return <></>
}