mirror of
https://github.com/kremalicious/umami.git
synced 2025-01-09 13:42:26 +01:00
19 lines
402 B
JavaScript
19 lines
402 B
JavaScript
import { useRouter } from 'next/router';
|
|
import AppLayout from 'components/layout/AppLayout';
|
|
import RealtimePage from 'components/pages/realtime/RealtimePage';
|
|
|
|
export default function () {
|
|
const router = useRouter();
|
|
const { id: websiteId } = router.query;
|
|
|
|
if (!websiteId) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<AppLayout>
|
|
<RealtimePage websiteId={websiteId} />
|
|
</AppLayout>
|
|
);
|
|
}
|