       (dom/h2 "Cart")
       (list-items (:cart data)))))
 
-(def intro "Hello, what can I help you find today?")
-
 (defcomponent app [data owner]
   (render [_]
     (dom/div {:class "container-fluid"}

;; state

(defonce state
  (atom {:cart {}
         :view :main
         }))

;; ──────────────────────────────────────────────────────────────────────
;; Main

;; ──────────────────────────────────────────────────────────────────────
;; Utils

(def *audio* true)
(def *api-token* "X45BKBNG6KKPYUVAWGYQZ3YG2VE3GHZF")

(def intro "Hello, what can I help you find today?")

(def dead-space-fillers
  ["Humm, let me see..."
   "Ok, one second."
   "I'm not sure, let me check."
   "Let me see what we have in stock"
   "Checking, I'll be right back with you."
   "I think we do, I'll check."])

(def second-chance
  ["I'm sorry, I couldn't understand you, you could repeat that?"
   "Humm, I'm having trouble understanding you. Could you repeat that?"
   "Sorry, I didn't catch that, please try again."
   "I'm sorry, I couldn't understand you, you could you say it in another way?"
   ])

(defn ^:export say [msg]
  (if *audio*
    (.speak js/speechSynthesis (new js/SpeechSynthesisUtterance msg))
    (.log js/console msg)))

(defn ^:export fill-space []
  (say (rand-nth dead-space-fillers)))

(defn ^:export second-chance []
  (say (rand-nth second-chance)))

;; ──────────────────────────────────────────────────────────────────────
;; Wit.ai
