;; Blog navigation components

(defcomp ~blog-nav-empty (&key wrapper-id)
  (div :id wrapper-id :sx-swap-oob "outerHTML"))

(defcomp ~blog-nav-item-link (&key href hx-get selected nav-cls img label)
  (div (a :href href :sx-get hx-get :sx-target "#main-panel"
    :sx-swap "outerHTML" :sx-push-url "true"
    :aria-selected selected :class nav-cls
    img (span label))))

(defcomp ~blog-nav-item-plain (&key href selected nav-cls img label)
  (div (a :href href :aria-selected selected :class nav-cls
    img (span label))))

;; Nav entries

(defcomp ~blog-nav-entries-empty ()
  (div :id "entries-calendars-nav-wrapper" :sx-swap-oob "true"))

(defcomp ~blog-nav-calendar-item (&key href nav-cls name)
  (a :href href :class nav-cls
    (i :class "fa fa-calendar" :aria-hidden "true")
    (div name)))

