 (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!]]

         [:section {:style {:padding-left "10px"}}
          [:h1 "Users"]

           [:p "There are currently " [:b num-active-users] " active users out of " [:b num-licensed-users] " licensed users."]

          [:p "Suspended users are prevented from logging in and do not count towards the number your license allows."]


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

         (conj (current-seat-usage-p (get-in app (conj state/license-path :seat_usage))
                                     (get-in app (conj state/license-path :seats)))
               " You can deactivate users in "
               [:a {:href "/admin/users"} "user settings."])]))))

(defn builders [builders owner]
  (reify
