mirror of
https://github.com/penpot/penpot.git
synced 2025-08-02 10:28:20 +02:00
13 lines
384 B
Clojure
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]))
|