               presence (st/get-presence @st/state {:jid jid})]
           (s/html
            [:div.active-user
-                                        ; TODO: avatar
+            ;; TODO: avatar
             [:img
              {:height "50",
               :width "50",

  (:require [om.core :as om :include-macros true]
            [sablono.core :as s :include-macros true]
            [openslack.state :as st]))

(defn user [state owner]
  (reify

              :src "/static/imgs/placerholder-avatar-1.jpg"}]
            [:div.square
             [:div.row [:h2 (:local jid)]]
             (let [availability (:availability presence :available)
                   default-status (availability->default-status availability)
                   status (:status presence)
                   status-text [:p.status-text (if status status default-status)]]
               (condp = availability
                 :available [:div.row [:div.status.online] status-text]
                 :unavailable [:div.row [:div.status.offline] status-text]
                 :dnd [:div.row [:div.status.busy] status-text]))]]))))))
