umami/pages/realtime/[id]/index.js
2023-02-15 02:27:18 -08:00

19 lines
436 B
JavaScript

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