aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/tau/components/navigation.cljs
blob: ba38ea4620cbb1bb430645722a61f4f22c6544bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
(ns tau.components.navigation
  (:require
   [re-frame.core :as rf]
   [tau.events :as events]))

(defn back-button [service-color]
  [:div.flex.items-center {:class "w-4/5"}
   [:button.py-4
    {:on-click #(rf/dispatch [::events/history-back])}
    [:i.fa-solid.fa-chevron-left
     {:style {:color service-color}}]
    [:span " Back"]]])