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