aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/tubo/views/playlists.cljs
blob: b64096070c8332dc049a8a831bcae6a116e71106 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
(ns tubo.views.playlists
  (:require
   [re-frame.core :as rf]
   [tubo.components.items :as items]
   [tubo.components.layout :as layout]
   [tubo.events :as events]))

(defn playlists-page
  []
  (let [service-color @(rf/subscribe [:service-color])
        bookmarks @(rf/subscribe [:bookmarks])]
    [layout/content-container
     [layout/content-header "Bookmarks"
      [layout/primary-button "Enqueue"
       #(rf/dispatch [::events/enqueue-related-streams bookmarks service-color]) "fa-solid fa-headphones"]]
     [items/related-streams bookmarks]]))