I have a styled component <Icon type="loader"/>. I would like to create another styled component by adding some custom style to this Icon component. I need to pass type to the Icon component how can I achieve this?
const loader = styled(Icon)` font-size:'inherit'`
Directly passing the Icon without any prop works fine.
I have tried this:
const CustomIcon = () => <Icon type="loader"/>
const loader = styled(CustomIcon)` font-size:'inherit'`
this gives error.
