(ns auto-ap.views.components.switch-field)

(defn switch-field [{:keys [id label on-change checked class]}]
  [:<> 
   [:input.switch {:type "checkbox" :id id :on-change on-change :checked checked :class class}]
   [:label {:for id} label]])
