import { useLoaderData } from "react-router-dom"; import { PersonCircle } from "react-bootstrap-icons"; import AddressesTable from "../../components/addresses_table"; import PaymentMethodsTable from "../../components/payment_methods_table"; import MainContentLayout from "../../components/main_content_layout"; import "../../components/stylesheets/shared.css"; export default function Account() { const response = useLoaderData(); const full_name = response[0].data.data.attributes.first_name + ' ' + response[0].data.data.attributes.last_name const email = response[0].data.data.attributes.email const addresses = response[1].data.data; const payment_methods = response[2].data.data; return( <>

{full_name}

Correo electrónico: {email}
Editar
); }