import { useSelector } from "react-redux"; import { Link } from "react-router-dom"; import "./Account.scss"; function Account() { const currentUser = useSelector((state) => state.auth.currentUser); return (
Back to your todo list

Account

Username
{currentUser.username}
Email
{currentUser.email}
Creation date
{new Date(currentUser.createdAt).toLocaleDateString()}
); } export default Account;