penpot/frontend/src/uxbox/main/ui/navigation.cljs
2019-07-24 11:36:09 +02:00

13 lines
384 B
Clojure

(ns uxbox.main.ui.navigation
;; TODO: deprecated
(:require [rumext.alpha :refer-macros [html]]
[goog.events :as events]
[uxbox.util.dom :as dom]))
(defn link
"Given an href and a component, return a link component that will navigate
to the given URI withour reloading the page."
[href component]
(html
[:a {:href (str "/#" href)} component]))