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.

982 B
Raw Blame
import { ScrollableShadows } from 'lib/lemon-ui/ScrollableShadows/ScrollableShadows'
import { cn } from 'lib/utils/css-classes'

export function SidePanelContentContainer({
    className,
    contentClassName,
    children,
}: {
    className?: string
    contentClassName?: string
    children?: React.ReactNode
}): JSX.Element {
    return (
        <div className="scene-panel-content-container h-full">
            <ScrollableShadows
                direction="vertical"
                innerClassName="p-2 flex flex-col"
                contentClassName={contentClassName}
                styledScrollbars
                className={cn(
                    'h-full bg-surface-primary flex flex-col flex-1 focus-within:outline-none focus-within:ring-2 focus-within:ring-primary z-10',
                    className
                )}
                data-attr="side-panel-content"
            >
                {children}
            </ScrollableShadows>
        </div>
    )
}