                     :type "hidden"}]
            [:button.btn.btn-primary {:value "Switch user", :type "submit"}
             "Switch user"]]]]]))))
+
+(defn current-seat-usage-p
+  [active-users total-seats]
+  [:p "There " (if (= 1 active-users) "is" "are" ) " currently "
+   [:b (pluralize active-users "active user")]
+   " out of "
+   [:b (pluralize total-seats "licensed user")]
+   "."])
 
 (defn overview [app owner]
   (reify

               (:environment app)))]
          "."]


         [:p "There are currently "
          [:b (get-in app (conj state/license-path :seat_usage))]
          " active users out of "
          [:b (get-in app (conj state/license-path :seats))]
          " licensed users.  You can deactivate users in "
          [:a {:href "/admin/users"} "user settings."]]]))))

(defn builders [builders owner]
  (reify

(ns frontend.components.admin
  (:require [ankha.core :as ankha]
            [inflections.core :refer [pluralize]]
            [cljs.core.async :as async :refer [>! <! alts! chan sliding-buffer close!]]
            [clojure.string :as str]
            [frontend.async :refer [raise!]]
