: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 } from 'kea'
import { IconComment } from '@posthog/icons'
import { ButtonPrimitive } from 'lib/ui/Button/ButtonPrimitives'
import { sidePanelLogic } from '~/layout/navigation-3000/sidepanel/sidePanelLogic'
import { SidePanelTab } from '~/types'
import { SceneDataAttrKeyProps } from './utils'
export function SceneComment({ dataAttrKey }: SceneDataAttrKeyProps): JSX.Element {
const { openSidePanel } = useActions(sidePanelLogic)
return (
<ButtonPrimitive
menuItem
onClick={() => openSidePanel(SidePanelTab.Discussion)}
data-attr={`${dataAttrKey}-comment-button`}
tooltip="Discuss resource"
>
<IconComment />
Comment
</ButtonPrimitive>
)
}