mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
21 lines
482 B
JavaScript
21 lines
482 B
JavaScript
import { useRouter } from 'next/router';
|
|
import Layout from 'components/layout/Layout';
|
|
import WebsiteDetails from 'components/pages/websites/WebsiteDetails';
|
|
import useRequireLogin from 'hooks/useRequireLogin';
|
|
|
|
export default function DetailsPage() {
|
|
const { user } = useRequireLogin();
|
|
const router = useRouter();
|
|
const { id } = router.query;
|
|
|
|
if (!id || !user) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<Layout>
|
|
<WebsiteDetails websiteId={id} />
|
|
</Layout>
|
|
);
|
|
}
|