🎉 Add the concept of 'main instance'

This commit is contained in:
Andrés Moya 2022-06-06 15:32:11 +02:00
parent 758d0d8943
commit 5dc7bc213f
14 changed files with 122 additions and 45 deletions

View file

@ -11,7 +11,7 @@
(mf/defc element-icon
[{:keys [shape] :as props}]
[{:keys [shape main-instance?] :as props}]
(case (:type shape)
:frame i/artboard
:image i/image
@ -21,7 +21,9 @@
:rect i/box
:text i/text
:group (if (some? (:component-id shape))
i/component
(if main-instance?
i/component
i/component-copy)
(if (:masked-group? shape)
i/mask
i/folder))