import { Portal, PopoverContent, PopoverArrow, PopoverBody, } from '@chakra-ui/react' import { ImageUploadContent } from 'components/shared/ImageUploadContent' import { BubbleBlock, BubbleBlockContent, BubbleBlockType, TextBubbleBlock, } from 'models' import { useRef } from 'react' import { EmbedUploadContent } from './EmbedUploadContent' import { VideoUploadContent } from './VideoUploadContent' type Props = { typebotId: string block: Exclude onContentChange: (content: BubbleBlockContent) => void } export const MediaBubblePopoverContent = (props: Props) => { const ref = useRef(null) const handleMouseDown = (e: React.MouseEvent) => e.stopPropagation() return ( ) } export const MediaBubbleContent = ({ typebotId, block, onContentChange, }: Props) => { const handleImageUrlChange = (url: string) => onContentChange({ url }) switch (block.type) { case BubbleBlockType.IMAGE: { return ( ) } case BubbleBlockType.VIDEO: { return ( ) } case BubbleBlockType.EMBED: { return ( ) } } }