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.

639 B
Raw Blame
import { IconStack, IconStackItem } from '@posthog/quill'

import { getIconColor, iconForType } from '~/layout/panel-layout/ProjectTree/defaultTree'
import { FileSystemIconType } from '~/queries/schema/schema-general'

export function TodayObjectIcon({ type, className }: { type: string | undefined; className: string }): JSX.Element {
    const [color] = getIconColor(type)
    return (
        <IconStack className={className}>
            <IconStackItem color={color === 'currentColor' ? undefined : color}>
                {iconForType(type as FileSystemIconType | undefined)}
            </IconStackItem>
        </IconStack>
    )
}