 ;; Initialize app
 
 (defn mount-root []
-  (info-get)
-  (playlist-get)
-  (library-get)
-
   (r/render [page-component] (.getElementById js/document "app")))
 
 (defn init! []

(defn playlist-remove [id]
  (DELETE (str "/api/playlist/" id)))

;; -------------------------
;; Views

(defn info-component []
  (let [title   (get-in @state [:info "name"])
        message (get-in @state [:info "greet_message"])
        url     (get-in @state [:info "stream_url"])]
    [:div.info
     [:h1 title]
     [:div.greet-message message]
     [:div.player [:audio {:src url
                           :controls "controls"}]]]))

(defn playlist-add-component [uuid]
  [:input.add-button

   ])

(defn playlist-component []
  [:div.library
   [:h2 "Playlist"]
   [:ul (for [uuid (@state :playlist)]
          [:li
           [playlist-remove-component uuid]
           [track-component uuid]])]])

(defn library-component []
  [:div.library
   [:h2 "Library"]
   [:ul (for [uuid (@state :library)]
          [:li
           [playlist-add-component uuid]
           [track-component uuid]])]])

(defn page-component []
  [:div.page
