import { PopoverContent, PopoverArrow, PopoverBody } from '@chakra-ui/react' import { useTypebot } from 'contexts/TypebotContext/TypebotContext' import { Step, StepType, TextInputOptions } from 'models' import { TextInputSettingsBody } from './TextInputSettingsBody' type Props = { step: Step } export const SettingsPopoverContent = ({ step }: Props) => { const handleMouseDown = (e: React.MouseEvent) => e.stopPropagation() return ( ) } const SettingsPopoverBodyContent = ({ step }: Props) => { const { updateStep } = useTypebot() const handleOptionsChange = (options: TextInputOptions) => updateStep(step.id, { options } as Partial) switch (step.type) { case StepType.TEXT_INPUT: { return ( ) } default: { return <> } } }