aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/tau/views/player.cljs
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2022-12-20 00:49:47 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2022-12-20 00:55:16 +0100
commitf2f9ab53c28a0fe63dfbbc09780ad4c0e9c40ba0 (patch)
treed32cbc72534f04d1652bac301d71b566eb824047 /src/frontend/tau/views/player.cljs
parent49ed8afbdddac61815807cbb8a811ecbd41cd973 (diff)
feat: Add initial frontend views
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")}]]))