import { format } from 'date-fns' import React from 'react' import { Helmet } from 'react-helmet' import { connect } from 'react-redux' import { Link } from 'react-router-dom' import { deletePicture, uploadPicture } from '../../actions' import { apiUrl } from '../../utils' function Profile ({ message, onDeletePicture, onUploadPicture, user }) { return (
{message}
)}
Email: {user.email}
Registration Date: { format(new Date(user.createdAt), 'DD/MM/YYYY HH:mm') }
First Name: {user.firstName}
Last Name: {user.lastName}
Birth Date: {user.birthDate}
Location: {user.location}
Bio: {user.bio}