import { asp as g } from "@asp/asp"; import { BarnoinPayBackground } from "@components/BarnoinPayBackground"; import BeasyLogoIcon from "@components/BeasyLogoIcon"; import * as Button from "@components/ButtonNew"; import Ionicons from "@expo/vector-icons/Ionicons"; import { LOG } from "@logger"; import { Text, View } from "react-native"; import { useDispatch } from "react-redux"; import { useUserAuthenticationContext } from "@/contexts/UserAuthenticationContext"; import { logout } from "@/features/auth/slice"; const log = LOG.extend("UserProfileScreen"); const UserProfileScreen = () => { log.verbose("UserProfileScreen"); const dispatch = useDispatch(); const { userInformations } = useUserAuthenticationContext(); return ( {userInformations.first_name} {userInformations.last_name} {userInformations.email} Utilisateur {userInformations.username} dispatch(logout())} > Deconnexion Informations sur le marchand Identifiant {userInformations.marchand.marchand_id} Entreprise {userInformations.marchand.nom} Code {userInformations.marchand.code} Addresse {userInformations.marchand.adresse} Url succès {userInformations.marchand.url_succes} Url échec {userInformations.marchand.url_echec} ); }; export default UserProfileScreen;