    :payment payment
    :invoices invoices
    :activity activity
+   :active active-custs
    :discount discount})
 
 (defn plan-menu* [{:keys [plan-id team-uuid submenu]} owner]

         (if (nil? active-users)
           [:div.loading {:key "loading"} "Loading"]
           [:div.content {:key "history"}
            (if (< 0 (count history))

              (for [{:keys [cust instant added?]} (reverse history)]
                [:div.access-card.make {:key (str instant cust)}
                 [:div.access-avatar

            [:div.content.make
             "Your discount expires on " (datetime/month-day (:discount/end plan)) "."])])))))

(defn open-menu-props [cast! submenu]
  {:on-click #(cast! :plan-submenu-opened {:submenu submenu})
   :on-touch-end #(do (cast! :plan-submenu-opened {:submenu submenu})
                      (.preventDefault %))})

(defn activity-summary [{:keys [plan team-uuid]} owner]
  (reify
    om/IRender
    (render [_]
      (let [cast! (om/get-shared owner :cast!)]
        (html
         (case (count (:plan/active-custs plan))
           0 [:span
              [:a (merge {:role "button"}
                         (open-menu-props cast! :active))
               "No users"]
              " are active on your team, yet."]
           1 [:span
              [:a (merge {:role "button"}
                         (open-menu-props cast! :active))
               "One user"]
              " is active on your team."]
           [:span
            [:a (merge {:role "button"}
                       (open-menu-props cast! :active))
             (str (count (:plan/active-custs plan)) " users")]

            " are active on your team."]))))))

(defn paid-summary [{:keys [plan team-uuid]} owner]
  (reify
    om/IRender
