I have a few icons, each icon has a black and a white version.
I want to place the icon component in a button, so that when I press the button, it the icon turns from black to white. Simple task so far, but now I wanna use that button component many times but with different icons in each one, and they each turn to their white version when clicked.
How do I create these icon components for this to work, each icon with it’s variant? or all icons in a single component with 2 properties? And then how do I change the default icon in the button component while making it work as intended? (Currently it changes to the default white icon, not the white version of the new icon)