             [sablono.core :refer-macros [html]]
             [foreign.sigma]
             [foreign.linkurious]
-            [plongeur.activity :as nav]
+            [plongeur.route :as r]
             [plongeur.model :as m]
             [plongeur.sigma :as s]
             [plongeur.config :as c]
-            [kierros.async :refer [debounce]])
+            [kierros.async :refer [debounce]]
+            [dommy.core :as d :refer-macros [sel sel1]])
   (:require-macros [cljs.core.async.macros :refer [go go-loop]]))
 
 (defn ascii [c] (-> c {\f 70


                     "hello"]))

(defcomponent Root
  [state cmd-chans]
  (html [:div {:id "plongeur-main"}


          ;; Nav buttons

          (Nav-buttons ((juxt m/current-view m/user-id) state) cmd-chans)

          ; TODO display logged in user + logout button

          [:div {:class-name "mdl-layout-spacer"}]

          (when-let [user-id (m/user-id state)]
            [:span {}
             [:div {:class-name "avatar-dropdown"
                    :id         "user-menu"}
              [:span {} user-id]]

             [:ul {:class-name "mdl-menu mdl-list mdl-menu--bottom-right mdl-js-menu mdl-js-ripple-effect mdl-shadow--2dp account-dropdown"
                   :for        "user-menu"}

              [:li {:class-name ""}]

              ]]


            )

          (when (= :view/edit-scene (m/current-view state))
            [:div {:on-click   #(go (>! add-plot :sigma))
