 (ns moomoo-frontend.renderer
-  (:require [om.core :as om  :include-macros true]
+  (:require [clojure.string :as string]
+            [om.core :as om  :include-macros true]
             [om.dom  :as dom :include-macros true]
             [moomoo-frontend.core :as core]
             [moomoo-frontend.player :as player]))

            (dom/div #js {:style #js {:float "left"
                                      :width "10%"
                                      :height "10%"}}
              (if (nil? (:cover-image state))
                (dom/img #js {:src grey-out-image
                              :style #js {:width "100%"
                                          :height "100%"}})
                (dom/img #js {:src (:cover-image state)
                              :style #js {:width "100%"
                                          :height "100%"}})))
            (dom/div nil


(defn current-track-tags-view [data owner]
  (reify
    om/IRender
    (render [this]
      (if-not (nil? (:current-track-id data))
        (let [music-info (core/get-music-info-from-id (:current-track-id data))
              tags (.-tags music-info)]
