: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 { useActions, useValues } from 'kea'
import { LemonSelect } from '@posthog/lemon-ui'
import { RestrictionScope, useRestrictedArea } from 'lib/components/RestrictedArea'
import { TeamMembershipLevel } from 'lib/constants'
import { teamLogic } from 'scenes/teamLogic'
export function BusinessModelConfig(): JSX.Element {
const { currentTeam, currentTeamLoading } = useValues(teamLogic)
const { updateCurrentTeam } = useActions(teamLogic)
const restrictedReason = useRestrictedArea({
scope: RestrictionScope.Project,
minimumAccessLevel: TeamMembershipLevel.Admin,
})
return (
<LemonSelect
value={currentTeam?.business_model || null}
onChange={(value) => updateCurrentTeam({ business_model: value })}
disabledReason={currentTeamLoading ? 'Loading...' : restrictedReason}
fullWidth
className="max-w-160"
options={[
{ value: null, label: 'Not specified' },
{ value: 'b2b', label: 'B2B' },
{ value: 'b2c', label: 'B2C' },
{ value: 'other', label: 'Other' },
]}
/>
)
}