: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
import { Tooltip } from '@posthog/lemon-ui'
import type { DataAgeLabel } from '../suggestionCopy'
export interface DataAgeMetaProps {
age: DataAgeLabel
}
export function DataAgeMeta({ age }: DataAgeMetaProps): JSX.Element {
if (!age.caveat) {
return <span translate="no">{age.label}</span>
}
return (
<Tooltip title={age.caveat}>
<span tabIndex={0} className="cursor-help underline decoration-dotted underline-offset-2">
<span translate="no">{age.label}</span>
<span className="sr-only">{`. ${age.caveat}`}</span>
</span>
</Tooltip>
)
}