import React from 'react'; import { Text, View, TouchableOpacity } from 'react-native'; import { IAvatar, IUser } from '../../definitions'; import I18n from '../../i18n'; import Avatar from '../../containers/Avatar'; // import Touch from '../../containers/Touch'; import styles from './styles'; import { useTheme } from '../../theme'; const Item = ({ item, onPress, text }: { item?: IAvatar; onPress: (value?: IAvatar) => void; text?: string }) => { const { colors } = useTheme(); return ( onPress(item)} style={[styles.avatarButton, { backgroundColor: colors.borderColor }]} > ); }; const AvatarSuggestion = ({ avatarSuggestions, onPress, user, resetAvatar }: { avatarSuggestions: IAvatar[]; onPress: (value?: IAvatar) => void; user?: IUser; resetAvatar?: () => void; }) => ( {I18n.t('Images_uploaded')} {user?.username && resetAvatar ? : null} {avatarSuggestions.slice(0, 7).map(item => ( ))} ); export default AvatarSuggestion;