import React, { FC } from 'react' import useCustomer from '@framework/customer/use-customer' import { Container, Text } from '@components/ui' import { Module } from '@agility/nextjs' interface Fields { heading: string, fullNameLabel: string, emailLabel: string, notLoggedInMessage: string } const ProfileModule: Module = ({ module: { fields } }) => { const { data } = useCustomer() return ( My Profile {data && (
Full Name {data.firstName} {data.lastName}
Email {data.email}
)}
) } export default ProfileModule