2020-08-06 08:03:07 +02:00
|
|
|
import React from 'react';
|
2020-08-07 11:27:12 +02:00
|
|
|
import Layout from 'components/layout/Layout';
|
2022-03-04 04:45:49 +01:00
|
|
|
import Dashboard from 'components/pages/Dashboard';
|
2020-08-06 08:03:07 +02:00
|
|
|
import useRequireLogin from 'hooks/useRequireLogin';
|
|
|
|
|
2022-10-13 01:29:44 +02:00
|
|
|
export default function DashboardPage() {
|
2020-08-06 08:03:07 +02:00
|
|
|
const { loading } = useRequireLogin();
|
|
|
|
|
|
|
|
if (loading) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
return (
|
2022-10-13 01:29:44 +02:00
|
|
|
<Layout>
|
2022-03-04 04:45:49 +01:00
|
|
|
<Dashboard />
|
2020-08-06 08:03:07 +02:00
|
|
|
</Layout>
|
|
|
|
);
|
|
|
|
}
|