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.

744 B
Raw Blame
import { Tooltip } from 'lib/lemon-ui/Tooltip'

const EXPLANATIONS = {
    model: 'No usage measurement is available for this model and date range.',
    job: 'Usage is measured once a day. Recent jobs update after the next daily measurement. Older measurements may be unavailable.',
}

export function UsageNotAvailable({ context }: { context: keyof typeof EXPLANATIONS }): JSX.Element {
    const explanation = EXPLANATIONS[context]

    return (
        <Tooltip title={explanation}>
            <span
                className="cursor-help border-b border-dotted text-secondary"
                tabIndex={0}
                aria-label={`N/A. ${explanation}`}
            >
                N/A
            </span>
        </Tooltip>
    )
}