It’s gonna be more laggy with more nested items (unless of course you are building something small instead of having hundreds of screens in the file). However, I just realized that you are gonna need an extra container anyway to set the outer component to hug contents so it changes size when you swap the component.
To me, while this is helpful, this is pretty much useless. How often do you update this icon anyway? I believe its easy enough to simply copy-paste the new icon into place if you decide to change it. And you’ll also have the freedom to change the smaller icon version manually, which may be necessary to improve legibility or make the overall shape pixel perfect.