             [frontend.components.key-queue :as keyq]
             [frontend.components.navbar :as navbar]
             [frontend.components.placeholder :as placeholder]
+            [frontend.components.common :as common]
             [om.core :as om :include-macros true]
             [om.dom :as dom :include-macros true]
             [sablono.core :as html :refer-macros [html]]))

          [:header
           (om/build navbar/navbar app {:opts opts})]
          [:main
           (om/build add-projects/add-projects app {:opts opts})]
          [:footer
           (footer/footer)]])))))

(def keymap
  (atom nil))

(defn loading [app owner opts]
  (reify
    om/IRender
    (render [_] (html [:div.loading-spinner common/spinner]))))

(defn dominant-component [app-state]
  (condp = (get-in app-state [:navigation-point])
    :build build-com/build
    :dashboard dashboard/dashboard
    :add-projects add-projects/add-projects
    :loading loading))

(defn app [app owner opts]
  (reify
