chore: introduce type icon

This commit is contained in:
Konstantinos Kaloutas
2022-09-15 12:18:58 +03:00
parent 7a975ac322
commit f0471bf902
7 changed files with 72 additions and 53 deletions

View File

@@ -930,6 +930,12 @@
(if extension? "tie tie" "ti ti"))}
(dissoc opts :class :extension?))]))
(rum/defc type-icon
[{:keys [name class title extension?]}]
[:.type-icon {:class class
:title title}
(icon name {:extension? extension?})])
(rum/defc with-shortcut < rum/reactive
< {:key-fn (fn [key pos] (str "shortcut-" key pos))}
[shortcut-key position content]