 (ns ^:figwheel-always prais2.logger
     (:require [rum.core :as rum]
               [prais2.core :as core]
+
               ))
 
 (rum/defc icon-control [icon event-key tooltip]

    (share-control)
    (load-control)]

   ])

(rum/defc load-control []
  (icon-control "sign-in fa-rotate-90" :load-session "read in session"))

#_(rum/defcc my-component [comp arg1 arg2]
  (let [node (.findDOMNode comp)]
    [:div "fails with: Uncaught TypeError: comp.findDOMNode is not a function"]))

(rum/defcc my-component [comp arg1 arg2]
  (let [node (.findDOMNode js/React comp)]
    [:div "fails with: Invariant Violation: findComponentRoot(...): Unable to find element.  This probably means the DOM was unexpectedly mutated ..."]))

#_(rum/defcc div [comp to-address session-log]
  (let [element (.findDOMNode js/React comp)]

    (.log js/console element)
    [:div#lookatme "Hi there"]
))

(rum/defc playback-controls []
  [:div
