       spacer
       [Link {:href "#" :text "Support"}]]]))
 
+
+(def top-nav-bar-items
+  [{:key :workspaces
+    :name "Workspaces"
+    :component workspaces/Page}
+   {:key :methods
+    :name "Method Repository"
+    :component method-repo/Page}
+   {:key :import-data
+    :name "Import Data"
+    :component import-data/Page}
+   ])
+
+
 (react/defc TopNavBarLink
   {:render
    (fn [{:keys [props state]}]

  {:render
   (fn [{:keys [props]}]
     [:div {:style {:textAlign "right"}}
      [TopNavBarLink {:name "Import Data"
                      :selected (= (:selected-item props) :import-data)
                      :onClick (fn [e] ((:on-nav props) :import-data))}]
      [TopNavBarLink {:name "Workspaces"
                      :selected (= (:selected-item props) :workspaces)
                      :onClick (fn [e] ((:on-nav props) :workspaces))}]
      [TopNavBarLink {:name "Method Repository"
                      :selected (= (:selected-item props) :methods)
                      :onClick (fn [e] ((:on-nav props) :methods))}]])})

;; Content to display when logged in via Google
(react/defc LoggedIn

   (fn [{:keys [props state]}]
     (let [nav-context (nav/parse-segment (:nav-context props))
           page (keyword (:segment nav-context))]
       (when-not (contains? (set (map :key top-nav-bar-items)) page)
         (nav/navigate (:nav-context props) "workspaces"))
       [:div {}

