: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 React from 'react'
import * as errorPng from '@posthog/brand/hoggies/png/error'
import { pngHoggie } from 'lib/brand/hoggies'
const HedgehogError = pngHoggie(errorPng)
export interface BillingEmptyStateProps {
heading?: string
detail?: string | React.ReactNode
}
export function BillingEmptyState({
heading = 'No data available',
detail = 'Please try adjusting your query or filters.',
}: BillingEmptyStateProps): JSX.Element {
return (
<div
data-attr="billing-empty-state"
className="flex flex-col bg-white rounded px-4 py-8 items-center text-center mx-auto"
>
<HedgehogError width="100" height="100" className="mb-4" />
<h2 className="text-xl leading-tight">{heading}</h2>
{typeof detail === 'string' ? (
<p className="text-sm text-balance text-tertiary">{detail}</p>
) : (
<div className="text-sm text-balance text-tertiary">{detail}</div>
)}
</div>
)
}