mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-21 08:43:37 +01:00
24 lines
539 B
JavaScript
24 lines
539 B
JavaScript
import React from 'react';
|
|
import { useRouter } from 'next/router';
|
|
import Layout from 'components/layout/Layout';
|
|
import WebsiteDetails from 'components/pages/WebsiteDetails';
|
|
import useRequireLogin from 'hooks/useRequireLogin';
|
|
|
|
export default function DetailsPage() {
|
|
const { loading } = useRequireLogin();
|
|
const router = useRouter();
|
|
const { id } = router.query;
|
|
|
|
if (!id || loading) {
|
|
return null;
|
|
}
|
|
|
|
const [websiteId] = id;
|
|
|
|
return (
|
|
<Layout>
|
|
<WebsiteDetails websiteId={websiteId} />
|
|
</Layout>
|
|
);
|
|
}
|