Skip to content

: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.

866 B
Raw Blame
import type { ExtensionContextValue } from '@stripe/ui-extension-sdk/context'
import { ContextView, Link } from '@stripe/ui-extension-sdk/ui'

import PostHogConnect from '../components/PostHogConnect'
import { BRAND_COLOR, BrandIcon, getConstants } from '../constants'

const APP_ID = 'com.posthog.stripe'

const Home = ({ environment }: ExtensionContextValue): JSX.Element => {
    return (
        <ContextView
            title="PostHog"
            brandColor={BRAND_COLOR}
            brandIcon={BrandIcon}
            footerContent={
                <Link href={{ name: 'fullPage', params: { appId: APP_ID } }} type="primary">
                    Open full dashboard
                </Link>
            }
        >
            <PostHogConnect constants={getConstants(environment)} mode={environment.mode} />
        </ContextView>
    )
}

export default Home