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.

1.3 KB
Raw Blame
import { Box } from '@stripe/ui-extension-sdk/ui'

import type { PostHogClient } from '../posthog/client'
import PromoBanner, { PromoBannerPrimaryLink, PromoBannerText, PromoBannerTitle } from './components/PromoBanner'

interface Props {
    client: PostHogClient | null
    projectId: string | null
}

const SupportTab = ({ client, projectId }: Props): JSX.Element => {
    const posthogBase = client ? `${client.baseUrl}/project/${projectId}` : null

    return (
        <Box css={{ width: 'fill', padding: 'large' }}>
            <PromoBanner hero>
                <PromoBannerTitle>Support is coming to PostHog</PromoBannerTitle>
                <PromoBannerText>
                    Soon you'll be able to correlate your PostHog users with Stripe customers and respond to support
                    tickets directly from PostHog — with full context from session replays, feature flags, and product
                    analytics already attached.
                </PromoBannerText>
                {posthogBase && (
                    <PromoBannerPrimaryLink href={`${posthogBase}/support`}>
                        Learn more about PostHog Support
                    </PromoBannerPrimaryLink>
                )}
            </PromoBanner>
        </Box>
    )
}

export default SupportTab