import { Stack, Text } from '@chakra-ui/react'
import { ChatEmbedSettings } from 'components/share/codeSnippets/Chat/EmbedSettings'
import { StandardEmbedWindowSettings } from 'components/share/codeSnippets/Container/EmbedSettings'
import { PopupEmbedSettings } from 'components/share/codeSnippets/Popup/EmbedSettings'
import {
ChatReactCode,
PopupReactCode,
StandardReactDiv,
} from 'components/share/codeSnippets/ReactCode'
import { CodeEditor } from 'components/shared/CodeEditor'
import { useState } from 'react'
import { BubbleParams } from 'typebot-js'
type Props = {
type: 'standard' | 'popup' | 'bubble'
}
export const ReactInstructions = ({ type }: Props) => {
switch (type) {
case 'standard': {
return
}
case 'popup': {
return
}
case 'bubble': {
return
}
}
}
const StandardInstructions = () => {
const [inputValues, setInputValues] = useState({
heightLabel: '100%',
widthLabel: '100%',
})
return (
setInputValues({ ...settings })}
/>
Insert the typebot container
)
}
const PopupInstructions = () => {
const [inputValue, setInputValue] = useState(0)
return (
setInputValue(settings.delay ?? 0)}
/>
Initialize the typebot
)
}
const BubbleInstructions = () => {
const [inputValues, setInputValues] = useState<
Pick
>({
proactiveMessage: undefined,
button: {
color: '',
iconUrl: '',
},
})
return (
setInputValues({ ...settings })}
/>
Initialize the typebot
)
}
const InstallPackageInstruction = () => {
return (
Install the package:
)
}