(ns auto-ap.views.pages.admin.vendors.side-bar
  (:require
   [auto-ap.views.pages.data-page :as data-page]
   [auto-ap.views.utils :refer [dispatch-value-change]]
   [re-frame.core :as re-frame]))

(defn vendor-side-bar [{:keys [data-page]}]
  [:div
   [:p.menu-label "Name"]
   [:div
    [:div.field
     [:div.control [:input.input {:placeholder "HOME DEPOT"
                                  :value       @(re-frame/subscribe [::data-page/filter data-page :name-like])
                                  :on-change   (dispatch-value-change [::data-page/filter-changed data-page :name-like])} ]]]]])


