 (ns com.wsscode.pathom.workspaces.graphql.simple-todo-demo
   (:require [fulcro.client.primitives :as fp]
-            [fulcro.client.localized-dom :as dom]
             [nubank.workspaces.card-types.fulcro :as ct.fulcro]
             [nubank.workspaces.lib.fulcro-portal :as f.portal]
             [nubank.workspaces.core :as ws]

   :query         [:todo/id :todo/title :todo/completed]
   :css           []
   :css-include   []}
  (rk/group {}
    (rk/input {:type     "text"
               :value    title
               :onChange #(fm/set-string! this :todo/title :event %)})
    (rk/button {:onClick #(on-save-todo (fp/props this))}
      "Add"
      (dom/create-element fa/FaPlusSquare))))

(fm/defmutation create-todo-item [todo]
  (action [env]

            [com.wsscode.pathom.fulcro.network :as pfn]
            [fulcro.client.mutations :as fm]
            [com.wsscode.fulcro.db-helpers :as db.h]
            [com.wsscode.fulcro.ui.reakit :as rk]
            [com.wsscode.fulcro.ui.icons.font-awesome :as fa]))

(declare TodoItem)

