import { OrderedList, ListItem, Tag } from '@chakra-ui/react' import { ChatEmbedCode } from 'components/share/codeSnippets/Chat/EmbedCode' import { ChatEmbedSettings } from 'components/share/codeSnippets/Chat/EmbedSettings' import { StandardEmbedWindowSettings } from 'components/share/codeSnippets/Container/EmbedSettings' import { parseInitContainerCode, typebotJsHtml, } from 'components/share/codeSnippets/params' import { PopupEmbedCode } from 'components/share/codeSnippets/Popup/EmbedCode' import { PopupEmbedSettings } from 'components/share/codeSnippets/Popup/EmbedSettings' import { CodeEditor } from 'components/shared/CodeEditor' import { useState } from 'react' import { BubbleParams } from 'typebot-js' import { ModalProps } from '../../EmbedButton' type GtmInstructionsProps = { type: 'standard' | 'popup' | 'bubble' publicId: string } export const GtmInstructions = ({ type, publicId }: GtmInstructionsProps) => { switch (type) { case 'standard': { return } case 'popup': { return } case 'bubble': { return } } } const StandardInstructions = ({ publicId }: Pick) => { const [windowSizes, setWindowSizes] = useState({ height: '100%', width: '100%', }) const jsCode = parseInitContainerCode({ url: `${ process.env.NEXT_PUBLIC_VIEWER_INTERNAL_URL ?? process.env.NEXT_PUBLIC_VIEWER_URL }/${publicId}`, }) const headCode = `${typebotJsHtml} ` const elementCode = `
` return ( On your GTM account dashboard, click on Add a new tag Choose Custom HTML tag type Paste the code below: On your webpage, you need to have an element on which the typebot will go. It needs to have the id typebot-container: setWindowSizes({ height: sizes.heightLabel, width: sizes.widthLabel, }) } /> ) } const PopupInstructions = () => { const [inputValue, setInputValue] = useState() return ( On your GTM account dashboard, click on Add a new tag Choose Custom HTML tag type Paste the code below: setInputValue(settings.delay)} /> ) } const BubbleInstructions = () => { const [inputValues, setInputValues] = useState< Pick >({ proactiveMessage: undefined, button: { color: '', iconUrl: '', }, }) return ( On your GTM account dashboard, click on Add a new tag Choose Custom HTML tag type Paste the code below: setInputValues({ ...settings })} /> ) }