umami/pages/realtime/[id]/index.js

19 lines
452 B
JavaScript
Raw Normal View History

2023-02-15 11:27:18 +01:00
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>
2023-02-18 06:42:42 +01:00
<RealtimeDashboard key={websiteId} websiteId={websiteId} />
2023-02-15 11:27:18 +01:00
</AppLayout>
);
}