   (dom/stop-propagation event)
   (let [id (:id item)]
     (rs/emit! (dw/toggle-shape-locking id))))
+
+(defn- element-icon
+  [item]
+  (case (:type item)
+    :builtin/icon (shapes/-render-svg item)
+    :builtin/rect i/box
+    :builtin/group i/folder))
 
 (defn- layer-element-render
   [own item selected]

  [own]
  (let [workspace (rum/react wb/workspace-l)
        selected (:selected workspace)
        shapes-by-id (rum/react shapes-by-id)
        page (rum/react (focus-page (:page workspace)))
        close #(rs/emit! (dw/toggle-toolbox :layers))
        copy #(rs/emit! (dw/copy-selected))

     [:li {:key (str (:id item))
           :on-click select
           :class (when selected? "selected")}
      [:div.element-list-body
       {:class (when selected? "selected")}
       [:div.element-actions
        [:div.toggle-element
         {:class (when-not (:hidden item) "selected")
          :on-click toggle-visibility}
         i/eye]
        [:div.block-element
         {:class (when (:blocked item) "selected")
          :on-click toggle-blocking}
         i/lock]]
       (if (:group item)
         [:div.sublevel-element i/sublevel])
       [:div.element-icon (element-icon item)]
       [:span (:name item "Unnamed")]]])))

(def ^:static ^:private layer-element
  (mx/component
