;; SX docs layout defcomps — root header from env free variables,
;; sx-specific headers passed as &key params.

;; --- SX home layout: root + sx menu row ---

(defcomp ~sx-layout-full (&key sx-row)
  (<> (~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)
    sx-row))

(defcomp ~sx-layout-oob (&key root-header sx-row)
  (<> root-header sx-row))

;; --- SX section layout: root + sx row (with child sub-row) ---

(defcomp ~sx-section-layout-full (&key sx-row)
  (<> (~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)
    sx-row))
