import { IonBackButton, IonButton, IonButtons, IonCol, IonContent, IonGrid, IonHeader, IonIcon, IonItem, IonLabel, IonPage, IonRow, IonTitle, IonToolbar, } from '@ionic/react'; import styles from './Account.module.css'; import { AccountStore } from '../data/AccountStore'; import { addOutline, logOutOutline } from 'ionicons/icons'; import { formatBalance } from '../data/Utils'; const Account = () => { const cards = AccountStore.useState((s) => s.cards); const profile = AccountStore.useState((s) => s.profile); return ( Account account avatar
{`${profile.firstname} ${profile.surname}`}
{cards.length} current cards
Add Card
{cards.map((card, index) => { return (

{card.description}

£{formatBalance(card.balance)}

); })}
); }; export default Account;