             [reagent.session :as session]
             [salava.core.ui.error :as err]
             [salava.core.ui.modal :refer [set-new-view]]
-            [salava.page.ui.helper :refer [badge-block html-block file-block heading-block tag-block]]
-            [salava.page.ui.edit :as edit]
-            ))
+            [salava.page.ui.helper :refer [badge-block html-block file-block heading-block tag-block]]))
 
 
 

            [markdown.core :refer [md->html]]
            [salava.core.ui.ajax-utils :as ajax]
            [salava.core.i18n :refer [t]]
            [salava.core.ui.helper :refer [navigate-to path-for]]
            [salava.badge.ui.helper :as bh]
            [salava.core.time :refer [date-from-unix-time]]
            [salava.file.icons :refer [file-icon]]


(defn init-data [page-id state]
  (ajax/GET
    (path-for (str "/obpv1/page/view/" page-id) true)
    {:handler (fn [data]

                (reset! state (assoc data
                                :page-id page-id
                                :show-link-or-embed-code nil
                                :permission "success"
                                :badge-small-view false)))}
    (fn [] (swap! state assoc :permission "error"))))


(defn handler [params]
