mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-16 02:05:04 +01:00
19 lines
394 B
JavaScript
19 lines
394 B
JavaScript
import { useRouter } from 'next/router';
|
|
import AppLayout from 'components/layout/AppLayout';
|
|
import WebsiteDetails from 'components/pages/websites/WebsiteDetails';
|
|
|
|
export default function DetailsPage() {
|
|
const router = useRouter();
|
|
const { id } = router.query;
|
|
|
|
if (!id) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<AppLayout>
|
|
<WebsiteDetails websiteId={id} />
|
|
</AppLayout>
|
|
);
|
|
}
|