mirror of
https://github.com/theoludwig/p61-project.git
synced 2024-07-17 07:00:12 +02:00
15 lines
316 B
TypeScript
15 lines
316 B
TypeScript
import { Stats } from "@/presentation/react/components/Stats/Stats"
|
|
import { useAuthentication } from "@/presentation/react/contexts/Authentication"
|
|
|
|
const StatsPage: React.FC = () => {
|
|
const { user } = useAuthentication()
|
|
|
|
if (user == null) {
|
|
return null
|
|
}
|
|
|
|
return <Stats />
|
|
}
|
|
|
|
export default StatsPage
|