       (: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])

     " Generate")])

(defn app-component []
  (let [state @app]
    [:div.container
     [:div.row
      [:h1.col-sm-6 (:text state)]

         ".json"]]
       [item-set (:itemset state) (:blocks state)]]
      [:div.col-sm-6
       [build-stats (:recommended state) (:champ state) (:champ-level state) (:props state) (:num-items state)]
       [item-recommendation (:recommended state) loading?]]]]))

(reagent/render-component [app-component]
                          (. js/document (getElementById "app")))
