diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index cbda0ee..2c93a7e 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -1,11 +1,18 @@ import React from 'react'; import { Navigation } from './Navigation'; +import { useStore } from '../store/useStore'; +import { useDisplay } from '../hooks/useDisplay'; export const Layout: React.FC<{ children: React.ReactNode }> = ({ children }) => { + const { isRailExpanded } = useStore(); + const { navMode } = useDisplay(); + + const isExpanded = navMode === 'rail-expanded' && isRailExpanded; + return (