import { memo, useMemo } from 'react' import { ThreadContent } from '@janhq/core' import { Tooltip } from '@janhq/joi' import { FolderOpenIcon } from 'lucide-react' import { usePath } from '@/hooks/usePath' import { openFileTitle } from '@/utils/titleUtils' import { RelativeImage } from '../TextMessage/RelativeImage' const ImageMessage = ({ content }: { content: ThreadContent }) => { const { onViewFile, onViewFileContainer } = usePath() const annotation = useMemo( () => content?.text?.annotations[0] ?? '', [content] ) return (