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.

635 B
Raw Blame
import { ReactNode } from 'react'

import { SceneConfig } from 'scenes/sceneTypes'

import { MinimalNavigation } from '../components/MinimalNavigation'
import { SimpleLayoutFrame } from '../components/SimpleLayoutFrame'

export function MinimalLayout({
    children,
    sceneConfig,
}: {
    children: ReactNode
    sceneConfig: SceneConfig | null
}): JSX.Element {
    return (
        <SimpleLayoutFrame
            nav={<MinimalNavigation />}
            mainClassName={sceneConfig?.layout !== 'plain' ? '@container/main-content flex flex-col p-4' : undefined}
        >
            {children}
        </SimpleLayoutFrame>
    )
}