              {:on-double-click edit}
              (:name coll)]
             [:span.dashboard-title-field
-             (:name coll "Storage")]))]
+             (:name coll)]))]
        (when (and own? coll)
          [:div.edition
           (if edit?

       (if (:edit @local)
         [:div
          [:input.element-title
            {:value (if (:name @local) (:name @local) (if coll name "Storage"))
             :on-change on-input-change
             :on-key-down on-input-keyup}]
          [:span.close {:on-click on-cancel} i/close]]
         [:span.element-title
          (if coll name "Storage")])
       [:span.element-subtitle
        (tr "ds.num-elements" (t/c colors))]])))

(def ^:private storage-num-colors-ref
  (-> (comp (l/in [:colors-collections nil :colors])
            (l/lens count))
      (l/derive st/state)))

(mx/defc nav-item-storage
  {:mixins [mx/static mx/reactive]}
  [selected?]
  (let [num-colors (mx/react storage-num-colors-ref)
        on-click #(st/emit! (dc/select-collection :own nil))]
    [:li {:on-click on-click :class (when selected? "current")}
     [:span.element-title "Storage"]
     [:span.element-subtitle
      (tr "ds.num-elements" (t/c num-colors))]]))

(mx/defc nav-section
  {:mixins [mx/static]}

        [:a.btn-primary
         {:on-click #(st/emit! (dc/create-collection))}
         "+ New library"]])
     (for [coll colls
           :let [selected? (= (:id coll) selected)
                 key (str (:id coll))]]
