: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 clsx from 'clsx'
import { PagePerformanceCardHeader } from './PagePerformanceCardHeader'
export interface PagePerformanceCardProps {
title?: string
footer?: React.ReactNode
className?: string
children: React.ReactNode
}
export function PagePerformanceCard({ title, footer, className, children }: PagePerformanceCardProps): JSX.Element {
return (
<div className={clsx('border rounded bg-surface-primary flex flex-col', className)}>
{title ? <PagePerformanceCardHeader title={title} /> : null}
<div className="flex flex-col flex-1 min-h-0">{children}</div>
{footer ? <div className="border-t px-3 py-2 text-xs text-secondary">{footer}</div> : null}
</div>
)
}