import { StickyBelowHeader } from '@/app/(app)/[organizationId]/[projectId]/layout-sticky-below-header'; import { OverviewReportRange } from '@/app/(app)/[organizationId]/[projectId]/overview-sticky-header'; import { Logo } from '@/components/logo'; import { OverviewFiltersButtons } from '@/components/overview/filters/overview-filters-buttons'; import ServerLiveCounter from '@/components/overview/live-counter'; import { OverviewLiveHistogram } from '@/components/overview/overview-live-histogram'; import OverviewMetrics from '@/components/overview/overview-metrics'; import OverviewTopDevices from '@/components/overview/overview-top-devices'; import OverviewTopEvents from '@/components/overview/overview-top-events'; import OverviewTopGeo from '@/components/overview/overview-top-geo'; import OverviewTopPages from '@/components/overview/overview-top-pages'; import OverviewTopSources from '@/components/overview/overview-top-sources'; import { notFound } from 'next/navigation'; import { getOrganizationBySlug, getShareOverviewById } from '@openpanel/db'; interface PageProps { params: { id: string; }; } export default async function Page({ params: { id } }: PageProps) { const share = await getShareOverviewById(id); if (!share) { return notFound(); } if (!share.public) { return notFound(); } const projectId = share.project_id; const organization = await getOrganizationBySlug(share.organization_slug); return (
{organization?.name}

{share.project?.name}

{/* */}
); }