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 { 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 WebflowInstructionsProps = {
type: 'standard' | 'popup' | 'bubble'
}
export const WebflowInstructions = ({ type }: WebflowInstructionsProps) => {
switch (type) {
case 'standard': {
return
}
case 'popup': {
return
}
case 'bubble': {
return
}
default:
return <>>
}
}
const StandardInstructions = () => (
Press A to open the Add elements panel
Add an embed element from the components
section and paste this code:
)
const PopupInstructions = () => {
const [inputValue, setInputValue] = useState(0)
return (
Press A to open the Add elements panel
Add an embed element from the components
section and paste this code:
setInputValue(settings.delay ?? 0)}
my={4}
/>
)
}
const BubbleInstructions = () => {
const [inputValues, setInputValues] = useState<
Pick
>({
proactiveMessage: undefined,
button: {
color: '',
iconUrl: '',
},
})
return (
Press A to open the Add elements panel
Add an embed element from the components
section and paste this code:
setInputValues({ ...settings })}
my={4}
/>
)
}