       [:li.tooltip.tooltip-right
        {:alt "share"} i/export]
       [:li.tooltip.tooltip-right
-       {:alt "save SVG"} i/save]]]))
+       {:alt "save SVG"
+        :on-click on-download}
+       i/save]]]))

  (:require [potok.core :as ptk]
            [uxbox.builtins.icons :as i]
            [rumext.core :as mx :include-macros true]
            [uxbox.view.store :as st]
            [uxbox.view.data.viewer :as dv]))


  (let [toggle-sitemap #(st/emit! (dv/toggle-flag :sitemap))
        toggle-interactions #(st/emit! (dv/toggle-flag :interactions))
        sitemap? (contains? flags :sitemap)
        interactions? (contains? flags :interactions)
        on-download #(udl/open! :download)]
    [:div.view-nav
     [:ul.view-options-btn
      [:li.tooltip.tooltip-right
