: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 { MakeLogicType, kea, path } from 'kea'
import { windowValues } from 'kea-window-values'
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
export interface navigationLogicValues {
fullscreen: boolean
mobileLayout: boolean
}
export type navigationLogicType = MakeLogicType<navigationLogicValues, {}>
export const navigationLogic = kea<navigationLogicType>([
path(['layout', 'navigation', 'navigationLogic']),
windowValues(() => ({
fullscreen: (window: Window) => !!window.document.fullscreenElement,
mobileLayout: (window: Window) => window.innerWidth < 992, // Sync width threshold with Sass variable $lg!
})),
])