diff --git a/src/components/Chatwoot.tsx b/src/components/Chatwoot.tsx new file mode 100644 index 0000000..19b54f3 --- /dev/null +++ b/src/components/Chatwoot.tsx @@ -0,0 +1,38 @@ +import { Button } from '@chakra-ui/react' +import { useCallback, useEffect } from 'react' + +export const ChatwootButton: React.FC = () => { + const chatWootEnabled = import.meta.env.VITE_FEATURE_CHATWOOT + useEffect(() => { + if (!chatWootEnabled) return // Add Chatwoot Settings + ;(window as any).chatwootSettings = { + hideMessageBubble: true, + position: 'left', // This can be left or right + locale: 'en', // Language to be set + type: 'standard', // [standard, expanded_bubble] + } + + // Paste the script from inbox settings except the