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.

764 B
Raw Blame
import clsx from 'clsx'

import { IconHome, IconPerson } from '@posthog/icons'

import { DashboardCompatibleScenes } from 'lib/components/SceneDashboardChoice/sceneDashboardChoiceModalLogic'
import { Scene } from 'scenes/sceneTypes'

export function SceneIcon(props: { scene: DashboardCompatibleScenes; size: 'small' | 'large' }): JSX.Element | null {
    const className = clsx('text-warning', props.size === 'small' ? 'text-lg' : 'text-3xl')
    if (props.scene === Scene.ProjectHomepage) {
        return <IconHome className={className} />
    } else if (props.scene === Scene.Group) {
        return <IconPerson className={className} />
    } else if (props.scene === Scene.Person) {
        return <IconPerson className={className} />
    }
    return null
}