import { Portal, PopoverContent, PopoverArrow, PopoverBody, } from '@chakra-ui/react' import { ImageUploadContent } from 'components/shared/ImageUploadContent' import { useTypebot } from 'contexts/TypebotContext' import { BubbleStep, BubbleStepContent, BubbleStepType, ImageBubbleStep, TextBubbleStep, } from 'models' import { useRef } from 'react' import { VideoUploadContent } from './VideoUploadContent' type Props = { step: Exclude } export const ContentPopover = ({ step }: Props) => { const ref = useRef(null) const handleMouseDown = (e: React.MouseEvent) => e.stopPropagation() return ( ) } export const StepContent = ({ step }: Props) => { const { updateStep } = useTypebot() const handleContentChange = (content: BubbleStepContent) => updateStep(step.id, { content } as Partial) switch (step.type) { case BubbleStepType.IMAGE: { return ( ) } case BubbleStepType.VIDEO: { return ( ) } } }