umami/pages/websites/[id]/realtime.js
2023-07-10 00:33:30 -07:00

19 lines
417 B
JavaScript

import { useRouter } from 'next/router';
import AppLayout from 'components/layout/AppLayout';
import RealtimeDashboard from 'components/pages/realtime/RealtimeDashboard';
export default function () {
const router = useRouter();
const { id: websiteId } = router.query;
if (!websiteId) {
return null;
}
return (
<AppLayout>
<RealtimeDashboard websiteId={websiteId} />
</AppLayout>
);
}