        :auto-focus      false}]
      [stats-table stats]]))
 
-
+(defn usage-info []
+  (reagent/create-class {:component-did-mount (fn []
+                                                (reset! rpc-refresh-interval (utils/set-interval #(re-frame/dispatch [::get-stats]) rpc-usage-refresh-interval-ms)))
+                         :component-will-unmount (fn []
+                                                   (utils/clear-interval @rpc-refresh-interval)
+                                                   (reset! rpc-refresh-interval nil))
+                         :reagent-render usage-info-render}))

       ^{:key (str k v)}
       [quo.react-native/view
        {:style {:flex-direction :row
                 :justify-content :space-between}}
        [quo.core/text k]
        [quo.core/text v]]))])

(defn prepare-stats [{:keys [stats]}]
  (clojure.string/join

(ns status-im.ui.screens.rpc-usage-info
  (:require [status-im.ui.components.react :as react]
            [status-im.i18n.i18n :as i18n]
            [reagent.core :as reagent]
            [quo.core :as quo.core]
            [quo.react-native :as quo.react-native]
            [re-frame.core :as re-frame]
            [status-im.utils.fx :as fx]
            [status-im.ethereum.json-rpc :as json-rpc]
            [taoensso.timbre :as log]
            [status-im.utils.utils :as utils]
            [clojure.string :as clojure.string]))

(re-frame/reg-sub :rpc-usage/raw-data (fn [db] (get db :rpc-usage/data)))
