: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 { BindLogic } from 'kea'
import { CanvasChatBody } from './CanvasChatBody'
import { CanvasChatComposer } from './CanvasChatComposer'
import { canvasChatLogic } from './canvasChatLogic'
import { CanvasChatStatus } from './CanvasChatStatus'
/** The Chat tab: the viewer's run on this canvas and the composer that continues it. */
export function CanvasChatTab({ canvasId }: { canvasId: string }): JSX.Element {
return (
<BindLogic logic={canvasChatLogic} props={{ id: canvasId }}>
<div className="flex h-full min-h-0 flex-col" data-attr="canvas-chat-tab">
<CanvasChatStatus />
<div className="min-h-0 flex-1">
<CanvasChatBody />
</div>
<CanvasChatComposer />
</div>
</BindLogic>
)
}