;; Cart header components

(defcomp ~header/page-label-img (&key src)
  (img :src src :class "h-8 w-8 rounded-full object-cover border border-stone-300 flex-shrink-0"))

(defcomp ~header/page-label (&key feature-image title)
  (<> (when feature-image
        (~header/page-label-img :src feature-image))
    (span title)))

(defcomp ~header/all-carts-link (&key href)
  (a :href href :class "inline-flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-full border border-stone-300 bg-white hover:bg-stone-50 transition"
    (i :class "fa fa-arrow-left text-xs" :aria-hidden "true") "All carts"))


