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.

748 B
Raw Blame
import type { PageToolDefinition } from './extensionPageTools'

export function ExtensionToolHint({ tool }: { tool: PageToolDefinition | null }): JSX.Element {
    return (
        <div className="flex flex-1 flex-col items-center justify-center gap-1 px-4 text-center" aria-live="polite">
            {tool ? (
                <>
                    <span className="text-2xl text-secondary">{tool.icon}</span>
                    <h3 className="m-0 text-sm font-semibold">{tool.label}</h3>
                    <p className="m-0 text-xs text-secondary">{tool.description}</p>
                </>
            ) : (
                <p className="m-0 text-xs text-secondary">Hover a tool to see what it does</p>
            )}
        </div>
    )
}