: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 { useValues } from 'kea'
import { eventsDeletedSentence } from './eventsDeletedSentence'
import { eventsRetentionDeletionCountLogic } from './eventsRetentionDeletionCountLogic'
export function EventsRetentionDowngradeDeletionCount({ months }: { months: number }): JSX.Element | null {
const { eventsDeleted } = useValues(eventsRetentionDeletionCountLogic({ count: 'downgrade', months }))
if (!eventsDeleted) {
return null
}
return <p className="mb-0 mt-2 font-semibold">{eventsDeletedSentence(eventsDeleted)}</p>
}