             [frontend.utils :as utils :include-macros true]
             [frontend.utils.date :refer (date->bucket)]
             [goog.date]
+            [goog.userAgent]
             [om.core :as om :include-macros true]
             [om.dom :as dom :include-macros true])
   (:require-macros [sablono.core :refer (html)])

           [:h2.make
            "Keep track of everything you copy and paste."]
           [:p.make
            "If you sign in with Google we keep track of everything you copy."]
           [:div.calls-to-action.make
            (om/build common/google-login {:source "Clip viewer signup"})]]])))))

(defn clips-list [clips owner]
  (reify
    om/IDisplayName (display-name [_] "Clip Viewer clips List")
    om/IDidMount (did-mount [_] (fdb/watch-doc-name-changes owner))
    om/IRender
    (render [_]

        (html
         [:div.content
          [:h2.make "Paste clips into your doc. "]
          [:p.make "Add new clips to the list by copying selected shapes on the canvas with " (if (om/get-state owner :mac?)
                                                                                                "Cmd+C."
                                                                                                "Ctrl+C.")
                   " Star clips to pin them to the top. "]
          [:div.clips
           (for [clip clips]
             (html
