import Button from '@components/Button' import openLink from '@components/openLink' import CustomText from '@components/Text' import { StyleConstants } from '@utils/styles/constants' import { useTheme } from '@utils/styles/ThemeManager' import React from 'react' import { useTranslation } from 'react-i18next' import { View } from 'react-native' import { Blurhash } from 'react-native-blurhash' import AttachmentAltText from './AltText' import attachmentAspectRatio from './aspectRatio' export interface Props { total: number index: number sensitiveShown: boolean attachment: Mastodon.AttachmentUnknown } const AttachmentUnsupported: React.FC = ({ total, index, sensitiveShown, attachment }) => { const { t } = useTranslation('componentTimeline') const { colors } = useTheme() return ( {attachment.blurhash ? ( ) : null} {!sensitiveShown ? ( <> {t('shared.attachment.unsupported.text')} {attachment.remote_url ? (