import {ActivityIndicator, View} from 'react-native' import {msg} from '@lingui/core/macro' import {useLingui} from '@lingui/react' import {Trans} from '@lingui/react/macro' import {useLargeAltBadgeEnabled} from '#/state/preferences/large-alt-badge' import {atoms as a, useTheme} from '#/alf' import {AltBadgeWithDialog} from '#/components/AltBadgeWithDialog' import {Button} from '#/components/Button' import {Fill} from '#/components/Fill' import {Text} from '#/components/Typography' import {PlayButtonIcon} from '#/components/video/PlayButtonIcon' export function GifPresentationControls({ onPress, isPlaying, isLoading, altText, }: { onPress: () => void isPlaying: boolean isLoading?: boolean altText?: string }) { const {_} = useLingui() const t = useTheme() const largeBadge = useLargeAltBadgeEnabled() return ( <> {!isPlaying && ( )} GIF {altText && } ) }