: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 { Link } from '@posthog/lemon-ui'
import { urls } from 'scenes/urls'
import { ProductKey } from '~/queries/schema/schema-general'
import { formatCreditCount } from '../utils/credits'
interface Props {
/** Projected monthly credits across every enabled scanner. */
projectedCredits: number
}
/**
* Uncapped orgs get no meter and no exhaustion guard, so the spend surfaces stand in for both:
* the projection on its own line, then the same status-plus-way-out shape as `QuotaExhaustedNote`.
*/
export function NoBillingLimitNote({ projectedCredits }: Props): JSX.Element {
return (
<div className="space-y-1 text-xs text-muted">
<div>Enabled scanners are projected to use ~{formatCreditCount(projectedCredits)}/month.</div>
{/* One colour throughout, so the link is underlined instead of accented to stay discoverable. */}
<div className="text-danger">
No billing limit set. Spend is uncapped.{' '}
<Link
data-attr="vision-open-billing-no-limit"
className="text-danger underline"
to={urls.organizationBilling([ProductKey.REPLAY_VISION])}
>
Set a billing limit
</Link>{' '}
to control costs.
</div>
</div>
)
}