import React from 'react'; import { Page } from '../Page'; import { Dashboard } from './Dashboard'; import { useUserProfileQuery } from '../../gql/queries/profile'; import { Loader } from '../Loader'; export function HomePage() { const { data, loading } = useUserProfileQuery(); if (loading) { return ( ); } const { userProfile } = (data || {}); return ( { userProfile ? : Veuillez vous authentifier. } ); }
Veuillez vous authentifier.