   (:require [material.component :as comp]
             [material.icon :as icon]
             [swarmpit.component.state :as state]
+            [swarmpit.storage :as storage]
             [clojure.string :as string]
             [rum.core :as rum]))
 

   {:name "Nodes"
    :icon icon/nodes}
   {:name "Networks"
    :icon icon/networks}
   {:name "SETTINGS"}
   {:name "Dockerhub"
    :icon icon/dockerhub}
   {:name "Registries"

                    selected (string/includes? domain name)]
                (if (some? icon)
                  (drawer-item name icon opened selected)
                  (drawer-category name opened)))) (if (storage/admin?)
                                                     (concat menu admin-menu)
                                                     menu)))))))