             [salava.core.ui.helper :refer [path-for private?]]
             [salava.core.ui.modal :as mo]
             [clojure.string :refer [blank?]]
-            [reagent.session :as session]))
+            [reagent.session :as session]
+            [salava.user.ui.helper :refer [profile-picture]]))
 
 
 (defn endorsement-row [endorsement]

                       (.preventDefault %)
                       (swap! state assoc :show-link "none"
                              :show-content "block")
                       ;(mo/open-modal [:badge :endorse] badge-id)
                       )}[:i.fa.fa-handshake-o] (t :badge/Endorsethisbadge)]]))

(defn endorse-badge [badge-id]
  (let [state (atom {:id badge-id
                     :show-link "block"
                     :show-content "none"
                     :endorsement-comment ""
                     :endorser-id (-> (session/get :user) :id)})]
    [:div#endorsebadge {:style {:margin-top "10px"}}
     [endorse-badge-link state]
     [endorse-badge-content state]
     ]
    )
  )
(defn request-endorsement [])
(defn pending-endorsement [])


        [:a.list-group-item {:href "#" :on-click #(do
                                                    (.preventDefault %)
                                                    (process-text (t :badge/Endorsephrase2) state)
                                                    )} [:i.fa.fa-plus-circle](t :badge/Endorsephrase2)]
        [:a.list-group-item {:href "#" :on-click #(do
                                                    (.preventDefault %)
