aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/tau/subs.cljs
blob: 53d6ff9ea1d45492498176d211794122d6903443 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
(ns tau.subs
  (:require
   [re-frame.core :as rf]))

(rf/reg-sub
 :search-results
 (fn [db _]
   (:search-results db)))

(rf/reg-sub
 :stream
 (fn [db _]
   (:stream db)))

(rf/reg-sub
 :global-search
 (fn [db _]
   (:global-search db)))

(rf/reg-sub
 :service-id
 (fn [db _]
   (:service-id db)))

(rf/reg-sub
 :services
 (fn [db _]
   (:services db)))

(rf/reg-sub
 :current-match
 (fn [db _]
   (:current-match db)))

(rf/reg-sub
 :global-stream
 (fn [db _]
   (:global-stream db)))

(rf/reg-sub
 :show-global-player
 (fn [db _]
   (:show-global-player db)))