mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-01 00:08:11 +01:00
23 lines
518 B
JavaScript
23 lines
518 B
JavaScript
import React from 'react';
|
|
import { useRouter } from 'next/router';
|
|
import Layout from 'components/layout/Layout';
|
|
import WebsiteList from 'components/pages/WebsiteList';
|
|
import useRequireLogin from 'hooks/useRequireLogin';
|
|
|
|
export default function DashboardPage() {
|
|
const { loading } = useRequireLogin();
|
|
const router = useRouter();
|
|
const { id } = router.query;
|
|
const userId = id?.[0];
|
|
|
|
if (loading) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<Layout>
|
|
<WebsiteList userId={userId} />
|
|
</Layout>
|
|
);
|
|
}
|