import { ListItem, OrderedList, Tag } from '@chakra-ui/react' import { ChatEmbedCode } from 'components/share/codeSnippets/Chat/EmbedCode' import { ChatEmbedSettings } from 'components/share/codeSnippets/Chat/EmbedSettings' import { ContainerEmbedCode } from 'components/share/codeSnippets/Container/EmbedCode' import { PopupEmbedCode } from 'components/share/codeSnippets/Popup/EmbedCode' import { PopupEmbedSettings } from 'components/share/codeSnippets/Popup/EmbedSettings' import { useState } from 'react' import { BubbleParams } from 'typebot-js' type WixInstructionsProps = { type: 'standard' | 'popup' | 'bubble' } export const WixInstructions = ({ type }: WixInstructionsProps) => { switch (type) { case 'standard': { return } case 'popup': { return } case 'bubble': { return } } } const StandardInstructions = () => { return ( In the Wix Website Editor: Add {'>'} Embed {'>'} Embed a Widget Click on Enter code and paste this code: ) } const PopupInstructions = () => { const [inputValue, setInputValue] = useState() return ( <> Go to Settings in your dashboard on Wix Click on Custom Code under Advanced Click + Add Custom Code at the top right. Paste this snippet in the code box: setInputValue(settings.delay)} my={4} /> ) } const BubbleInstructions = () => { const [inputValues, setInputValues] = useState< Pick >({ proactiveMessage: undefined, button: { color: '', iconUrl: '', }, }) return ( Go to Settings in your dashboard on Wix Click on Custom Code under Advanced Click + Add Custom Code at the top right. Paste this snippet in the code box:{' '} setInputValues({ ...settings })} /> ) }