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.

1.2 KB
Raw Blame
import { LemonTabs } from 'lib/lemon-ui/LemonTabs'
import { urls } from 'scenes/urls'

export type StamphogTabKey = 'repositories' | 'runs' | 'digests'

// Top-level tab strip for stamphog. Every tab is team-scoped, so this is purely presentational —
// each scene passes the key it is. Repositories stays first: it's the only tab you have to visit
// before the other two have anything to show.
export function StamphogTabs({ activeKey }: { activeKey: StamphogTabKey }): JSX.Element {
    return (
        <LemonTabs
            activeKey={activeKey}
            sceneInset
            tabs={[
                {
                    key: 'repositories' satisfies StamphogTabKey,
                    label: 'Repositories',
                    link: urls.stamphog(),
                },
                {
                    key: 'runs' satisfies StamphogTabKey,
                    label: 'Runs',
                    link: urls.stamphogRuns(),
                },
                {
                    key: 'digests' satisfies StamphogTabKey,
                    label: 'Digests',
                    link: urls.stamphogDigests(),
                },
            ]}
        />
    )
}