: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 { CanvasBlocksTab } from './blocks/CanvasBlocksTab'
import type { CanvasPanelTab } from './canvasPanelTabs'
import { CanvasChatTab } from './chat/CanvasChatTab'
import { CanvasTimelineTab } from './timeline/CanvasTimelineTab'
/** The content of one side panel tab. */
export function CanvasSidePanelTabBody({ tab, canvasId }: { tab: CanvasPanelTab; canvasId: string }): JSX.Element {
switch (tab) {
case 'chat':
return <CanvasChatTab canvasId={canvasId} />
case 'blocks':
return <CanvasBlocksTab canvasId={canvasId} />
case 'timeline':
return <CanvasTimelineTab />
}
}