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