import {Pressable, StyleSheet, View} from 'react-native' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' import {atoms as a, useTheme} from '#/alf' import {Fill} from '#/components/Fill' import {Loader} from '#/components/Loader' import {Text} from '#/components/Typography' import {PlayButtonIcon} from '#/components/video/PlayButtonIcon' export function GifPresentationControls({ onPress, isPlaying, isLoading, }: { onPress: () => void isPlaying: boolean isLoading?: boolean }) { const {_} = useLingui() const t = useTheme() return ( <> {isLoading ? ( ) : !isPlaying ? ( ) : undefined} {!isPlaying && ( )} GIF ) } const styles = StyleSheet.create({ gifBadgeContainer: { backgroundColor: 'rgba(0, 0, 0, 0.75)', borderRadius: 6, paddingHorizontal: 4, paddingVertical: 3, position: 'absolute', left: 6, bottom: 6, zIndex: 2, }, })