;; Federation layout defcomps — read ctx values from env free variables. ;; `actor` is injected into env by the layout registration in __init__.py. ;; Full page: root header + social header in header-child (defcomp ~social-layout-full () (<> (~root-header :cart-mini cart-mini :blog-url blog-url :site-title site-title :app-label app-label :nav-tree nav-tree :auth-menu auth-menu :nav-panel nav-panel :settings-url settings-url :is-admin is-admin) (~header-child-sx :inner (~federation-social-header :nav (~federation-social-nav :actor actor))))) ;; OOB (HTMX): social header oob + root header oob (defcomp ~social-layout-oob () (<> (~oob-header-sx :parent-id "root-header-child" :row (~federation-social-header :nav (~federation-social-nav :actor actor))) (~root-header :cart-mini cart-mini :blog-url blog-url :site-title site-title :app-label app-label :nav-tree nav-tree :auth-menu auth-menu :nav-panel nav-panel :settings-url settings-url :is-admin is-admin :oob true)))