I've already seen how the same styles can be used for multiple components (as shown here) by making one component based on a previously made one, but that same logic doesn't seem to fit my case.
I imported my svg like this:
import { ReactComponent as UpsetEmoticon } from '../images/upset-emoticon.svg';
and used styled components to change the hover color like this:
const UpsetEmoticonStyled = styled(UpsetEmoticon)`
& path {
fill: white;
}
&:hover {
& path {
fill: gray;
}
}
`;
I want to apply this same styling to multiple svgs that I'm importing the same way. I could just repeat the code multiple times, switching out the SVG taken in styled() but if there is a way that's more concise I'd prefer that. Thank you in advance!