import { useNavigation } from '@react-navigation/core'; import React from 'react'; import { Button, Card, Divider, Paragraph } from 'react-native-paper'; import Mascot, { MASCOT_STYLE } from '../../Mascot/Mascot'; import i18n from 'i18n-js'; import { StyleSheet } from 'react-native'; import CardList from '../../Lists/CardList/CardList'; import { getAmicaleServices, SERVICES_KEY } from '../../../utils/Services'; type Props = { firstname?: string; }; const styles = StyleSheet.create({ card: { margin: 10, }, editButton: { marginLeft: 'auto', }, mascot: { width: 60, }, title: { marginLeft: 10, }, }); function ProfileWelcomeCard(props: Props) { const navigation = useNavigation(); return ( ( )} titleStyle={styles.title} /> {i18n.t('screens.profile.welcomeDescription')} {i18n.t('screens.profile.welcomeFeedback')} ); } export default React.memo( ProfileWelcomeCard, (pp, np) => pp.firstname === np.firstname );