import { PopoverContent, PopoverArrow, PopoverBody } from '@chakra-ui/react' import { useTypebot } from 'contexts/TypebotContext/TypebotContext' import { InputStepType, Step, TextInputOptions } from 'models' import { EmailInputSettingsBody } from './EmailInputSettingsBody' import { NumberInputSettingsBody } from './NumberInputSettingsBody' 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 InputStepType.TEXT: { return ( ) } case InputStepType.NUMBER: { return ( ) } case InputStepType.EMAIL: { return ( ) } default: { return <> } } }