          :on-click on-redo}
          i/redo]]
        [:ul.options-btn
-        ;; TODO: refactor
         [:li.tooltip.tooltip-bottom
          {:alt "Export (Ctrl + E)"
-          :on-click on-download-clicked}
+          :on-click on-download}
          i/export]
         [:li.tooltip.tooltip-bottom
          {:alt "Image (Ctrl + I)"

        toggle #(rs/emit! (dw/toggle-flag %))
        on-undo #(rs/emit! (udh/backwards-to-previous-version))
        on-redo #(rs/emit! (udh/forward-to-next-version))
        on-image #(udl/open! :new-image)]
    (html
     [:header#workspace-bar.workspace-bar
      [:div.main-icon


;; --- Header Component

(defn on-view-clicked
  [event project page]
  (let [token (:share-token project)
