I moved the previous static icon in its own component and created a component that manage the loading of the appropriate icon: static or dynamic.