       (:total (:gold item))]]
     [:div {:dangerouslySetInnerHTML {:__html (:description item)}}]]])
 
-(defn item-recommendation [recommended]
-  (when-not (loading?)
+(defn item-recommendation [recommended loading?]
+  (when-not loading?
     [:div.media-list
      (map (fn [idx item]
             ^{:key idx} [item-component idx item])

            pretty pretty
            stat-optimized? (as-> el [:b el]))]]))

(defn current-build []
  (let [n (:num-items @app)
        build (:recommended @app)
        build (concat build (repeat (- n (count build)) nil))]
    (into [:div]
          (for [i build]
            [item-image i]))))

(defn build-stats [recommended champ champ-level props]
  [:div.panel.panel-primary
   [:div.panel-heading "Current build"]
   [:div.panel-body [current-build]]
   [:table.table
    [:tr [:th "Stat"] [:th "Value"]]
    [:div

                                                {:id "2004" :count 1}
                                                {:id "3340" :count 1}]}]}}))

(defonce items (atom nil))
(defonce champs (atom nil))

