     [broadfcui.common.style :as style]
     [broadfcui.endpoints :as endpoints]
     [broadfcui.utils :as utils]
+    [clojure.string :as str]
     ))
 
 (def ^:private preview-byte-count 20000)

            [:div {:style {:marginTop "1em"}}
             (labeled "File size"
                      (common/format-filesize data-size)
                      (if (or (= data-size "0") (clojure.string/blank? data-size))
                        (react/create-element [:span {:style {:marginLeft "2em" :fontWeight "bold"}} "File Empty"])
                        (react/create-element
                          [:span {:style {:marginLeft "1em"}}

                                    :preview-line-count (count (clojure.string/split raw-response #"\n+")))
                             (after-update
                               (fn []
                                 (when-not (str/blank? (@refs "preview"))
                                   (aset (@refs "preview") "scrollTop" (aget (@refs "preview") "scrollHeight"))))))}))})



