: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 { ExperimentImplementationDetails } from '../ExperimentImplementationDetails'
import { experimentLogic } from '../experimentLogic'
import { WebExperimentImplementationDetails } from '../WebExperimentImplementationDetails'
export function ExperimentHeader(): JSX.Element {
const { experiment, isExperimentLaunched } = useValues(experimentLogic)
return (
<>
{!isExperimentLaunched && (
<div className="border rounded bg-surface-primary p-4">
{experiment.type === 'web' ? (
<WebExperimentImplementationDetails experiment={experiment} />
) : (
<ExperimentImplementationDetails experiment={experiment} placement="draft_header" />
)}
</div>
)}
</>
)
}