         (dom/h3 nil (str "Mark " (:round/recall selected-activity) " of "
                          (count
                            (:round/starting selected-activity))))
-        (dom/h3 nil (str "Heats " (:round/heats selected-activity)))
-        (dom/h3 nil (str "Example Participant " (:participant/number (first (:round/starting selected-activity)))))))))
+        ((om/factory HeatsComponent) {:participants (:round/starting selected-activity)
+                                      :heats (:round/heats selected-activity)})
+        ;(dom/h3 nil (str "Example Participant " (:participant/number
+        ;                                          (first (:round/starting selected-activity)))))
+        ))))
 
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

                                                      :app/selected-adjudicator])))}
                 (:adjudicator/name %)) (:adjudicator-panel/adjudicators panel)))))))

(defui MainComponent
  static om/IQuery
  (query [_]
    [{:app/selected-activity
      [:activity/id :activity/name
       :round/recall :round/heats :round/name
       {:round/starting [:participant/number :participant/id]}
       {:round/panel (om/get-query AdjudicatorSelection)}]}
     {:app/selected-adjudicator [:adjudicator/name
                                 :adjudicator/id]}])

;; Components



;; TODO:
;; X Select judge for UI
;; X Get selected round that is to be judged
;; X Get the number of participants to be recalled
;; - Show participant number
;; - Command to set mark on participant for the specific round for this judge
;; - Command to inc/dec the judges 'point' for a participant
