blob: a0d25e218402d80731c78c6f38d903b02ac91ec6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
(ns tau.components.navigation
(:require
[re-frame.core :as rf]
[tau.events :as events]))
(defn back-button []
(let [service-color @(rf/subscribe [:service-color])]
[:div.flex {:class "w-4/5"}
[:button.p-2
{:on-click #(rf/dispatch [::events/history-back])}
[:i.fa-solid.fa-chevron-left
{:style {:color service-color}}]
[:span " Back"]]]))
|