import React from 'react'; import { Page } from '../Page'; import { useSelector } from 'react-redux'; import { RootState } from '../../store/reducers/root'; export function HomePage() { const currentUser = useSelector((state: RootState) => state.auth.currentUser); return (
{ currentUser ?

Bonjour {currentUser.email} !

:

Veuillez vous authentifier.

}
); }