aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/tau/views/player.cljs
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/tau/views/player.cljs')
-rw-r--r--src/frontend/tau/views/player.cljs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/frontend/tau/views/player.cljs b/src/frontend/tau/views/player.cljs
new file mode 100644
index 0000000..732e542
--- /dev/null
+++ b/src/frontend/tau/views/player.cljs
@@ -0,0 +1,11 @@
+(ns tau.views.player
+ (:require
+ [re-frame.core :as rf]))
+
+(defn global-player
+ []
+ (let [global-stream @(rf/subscribe [:global-stream])
+ show-global-player? @(rf/subscribe [:show-global-player])]
+ [:div
+ [:audio {:src global-stream
+ :class (when-not show-global-player? "hidden")}]]))