: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 { LemonDivider } from '@posthog/lemon-ui'
import { Language } from 'lib/components/CodeSnippet'
import { CodeSnippet } from 'lib/components/CodeSnippet'
import { LemonBanner } from 'lib/lemon-ui/LemonBanner'
import { useWizardCommand } from './useWizardCommand'
const SetupWizardBanner = ({
integrationName,
hide,
}: {
integrationName: string
hide?: boolean
}): JSX.Element | null => {
const { wizardCommand, isCloudOrDev } = useWizardCommand()
if (hide || !isCloudOrDev) {
return null
}
return (
<>
<h2>Automated installation</h2>
<LemonBanner type="info" hideIcon={true}>
<h3 className="pb-1">AI setup wizard</h3>
<div className="flex flex-col p-2">
<p className="font-normal pb-1">Try using the AI setup wizard to automatically install PostHog.</p>
<p className="font-normal pb-2">
Run the following command from the root of your {integrationName} project.
</p>
<CodeSnippet language={Language.Bash}>{wizardCommand}</CodeSnippet>
</div>
</LemonBanner>
<LemonDivider label="OR" />
<h2>Manual installation</h2>
</>
)
}
export default SetupWizardBanner