;; This Source Code Form is subject to the terms of the Mozilla Public
;; License, v. 2.0. If a copy of the MPL was not distributed with this
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
;;
;; Copyright (c) KALEIDOS INC Sucursal en España SL

(ns app.main.ui.releases.common
  (:require-macros [app.main.style :as stl])
  (:require
   [rumext.v2 :as mf]))

(defmulti render-release-notes :version)

(mf/defc navigation-bullets*
  [{:keys [slide navigate total]}]
  [:ul {:class (stl/css :step-dots)}
   (for [i (range total)]
     [:li {:class (stl/css-case :dot true
                                :current (= slide i))
           :on-click #(navigate i)}])])
