Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

788 B
Raw Blame
import { useValues } from 'kea'
import { router } from 'kea-router'

import { SceneExport } from 'scenes/sceneTypes'

import { SceneContent } from '~/layout/scenes/components/SceneContent'
import { ProductKey } from '~/queries/schema/schema-general'

import { alertsEmptyState } from './emptyState/alertsEmptyState'
import { Alerts } from './views/Alerts'

export function AlertsScene(): JSX.Element {
    const { searchParams } = useValues(router)
    const alertId = typeof searchParams.alert_id === 'string' ? searchParams.alert_id : null

    return (
        <SceneContent>
            <Alerts alertId={alertId} />
        </SceneContent>
    )
}

export const scene: SceneExport = {
    component: AlertsScene,
    productKey: ProductKey.ALERTS,
    emptyState: alertsEmptyState,
}