import {View} from 'react-native' import {Image} from 'expo-image' import {msg} from '@lingui/core/macro' import {useLingui} from '@lingui/react' import {atoms as a, useTheme} from '#/alf' import {Text} from '#/components/Typography' import {PROP_1, PROP_2, PROP_3} from './images' import {Dot, useValuePropText} from './ValuePropositionPager.shared' export function ValuePropositionPager({ step, avatarUri, }: { step: 0 | 1 | 2 avatarUri?: string }) { const t = useTheme() const {_} = useLingui() const image = [PROP_1[t.name], PROP_2[t.name], PROP_3[t.name]][step] const {title, description, alt} = useValuePropText(step) return ( {alt} {step === 1 && ( {_(msg`Your )} {title} {description} ) }