aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/tubo/components/loading.cljs
blob: 08c37dec92b7e7d9260a6d07eb776af2ff1db985 (plain)
1
2
3
4
5
6
7
8
(ns tubo.components.loading)

(defn loading-icon
  [service-color & styles]
  [:div.w-full.flex.justify-center.items-center.flex-auto
   [:i.fas.fa-circle-notch.fa-spin
    {:class (apply str (if (> (count styles) 1) (interpose " " styles) styles))
     :style {:color service-color}}]])