        {:on-click on-clear}
        i/close]])))
 
-(def ^:const ^:private search-widget
+(def ^:private search-widget
   (mx/component
    {:render search-widget-render
     :name "search-widget"


;; --- Helpers & Constants

(def ^:const ^:private
  +project-defaults+ {:name ""
                      :width 1920
                      :height 1080
                      :layout "desktop"})

(def ^:const +layouts+
  {"mobile"
   {:name "Mobile"
    :id "mobile"

    :width 1920
    :height 1080}})

(def +ordering-options+
  {:name "ds.project-ordering.by-name"
   :created "ds.project-ordering.by-creation-date"})

;; --- Lenses

(def projects-by-id-l
  (as-> (l/key :projects-by-id) $
    (l/focus-atom $ s/state)))

(def project-ordering-l
  (as-> (l/in [:dashboard :project-order]) $
    (l/focus-atom $ s/state)))

(def project-filtering-l
  (as-> (l/in [:dashboard :project-filter]) $
    (l/focus-atom $ s/state)))

