 (ns fugue.ide.ui
   (:require [reagent.core :as r]
             [cljs.js]
+            [fugue.demo.demo-loader :as demo-loader]
             [fugue.ide.util :refer [log]]
             [fugue.ide.popup :as popup]
             [fugue.ide.editor :as editor]

  {:eval cljs.js/js-eval
   :context :statement
   :load (fn [m cb]
           (if-let [source (get-in state [:files (str :name m)])]
             (cb {:lang :clj :source source})
             (cb nil)))})

(defn on-eval [state result]

  (s/layout
    state
    (fn [id name value active]
      [:div {:class-name (if active "window focused" "window")
             :on-mouse-down #(on-box-click id)}
       (cond
