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.

757 B
Raw Blame
import { LemonButton } from '@posthog/lemon-ui'

import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'

import { QuillSurveyFeedbackButton } from './QuillSurveyFeedbackButton'

/**
 * This button does not have any logic attached to it, as that's added using a survey from PostHog.
 * On prod, the survey is https://us.posthog.com/project/2/surveys/0196afd4-6617-0000-0bbf-8b0db5b160f9
 */
export function SurveyFeedbackButton(): JSX.Element {
    const todayRailNav = useFeatureFlag('TODAY_RAIL_NAV')
    if (todayRailNav) {
        return <QuillSurveyFeedbackButton />
    }

    return (
        <LemonButton size="small" id="surveys-page-feedback-button" tooltip="Have any questions or feedback?">
            Feedback
        </LemonButton>
    )
}