             [salava.user.ui.helper :refer [profile-picture]]
             [salava.core.i18n :refer [t]]
             [reagent-modals.modals :as m]
-            [salava.core.ui.layout :as layout]))
+            [salava.core.ui.layout :as layout]
+            [reagent.session :as session]))
 
 
 (defn init-data [state]

           [:p.num (->> (:followers-users @state) count)]
           [:p.desc (t :social/Followersusers)]
           ]
          ;]
        ]]])))

(defn handler [site-navi]
  (let [state (atom {:visible-area  nil

    (fn []
      [:div
       [:div.info-block
        [:a {:href (path-for "/connections/user") :on-click #(do
                                                               (.preventDefault %)
                                                               (session/put! :visible-area :accepted) )}
         [:div.info
          ;[:i.fa.fa-user.icon]
          [:div.text
           [:p.num (->> (:following-users @state) count)]
           [:p.desc (t :social/Followedusers)]
           ]]
         ]
        ]

       [:div.info-block
        [:a {:href (path-for "/connections/user")  :on-click #(do
                                                                (.preventDefault %)
                                                                (session/put! :visible-area :pending) )}
         [:div.info
          (when (pos? (count (:pending @state))) [:span.badge (count (:pending @state))])
          ;[:i.fa.fa-user.icon]
