 (def ^:static grid-color "#cccccc")
 
 (defn grid-render
-  [own enabled? zoom]
+  [own zoom]
   (letfn [(vertical-line [position value padding]
             (let [ticks-mod (/ 100 zoom)
                   step-size (/ 10 zoom)]

(defn viewport-render
  []
  (let [workspace (rum/react wb/workspace-state)
        zoom 1]
    (html
     [:svg#viewport
      {:width wb/viewport-height
       :height wb/viewport-width}
      [:g.zoom
       {:transform (str "scale(" zoom ", " zoom ")")}
       (wc/canvas)
       (grid (:grid-enabled workspace false) zoom)]])))

(def viewport
  (util/component

    (let [padding (* 20 zoom)
          ticks-mod (/ 100 zoom)
          step-size (/ 10 zoom)
          workspace (rum/react wb/workspace-state)
          enabled? (:grid-enabled workspace false)
          vertical-ticks (range (- padding wb/document-start-y)
                                (- wb/viewport-height wb/document-start-y padding)
                                step-size)
