import { UserGetters as BaseUserGetters } from '@vue-storefront/core' ; import { Customer } from '@vue-storefront/magento-api' ; export const getFirstName = ( user ) : string => ( user ? user . firstname : '' ) ; export const getLastName = ( user ) : string => ( user ? user . lastname : '' ) ; export const getEmailAddress = ( user ) : string => ( user ? user . email : '' ) ; export const getFullName = ( user ) : string => ( user ? `${ user . firstname } ${ user . lastname }` : '' ) ; const userGetters = { getFirstName , getLastName , getEmailAddress , getFullName , } ; export default userGetters ;