import React from 'react'; import * as List from '../../containers/List'; import { useTheme } from '../../theme'; const LanguageItem = ({ item, language, submit }: { item: { value: string; label: string }; language: string; submit: (language: string) => Promise; }) => { const { colors } = useTheme(); const { value, label } = item; const isSelected = language === value; return ( submit(value)} testID={`language-view-${value}`} right={() => (isSelected ? : null)} translateTitle={false} /> ); }; export default LanguageItem;