Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
<picture>
<source srcset="{" type="image/svg+xml" data-testid="ml-icon__svg">
<img alt="{" srcset="{" src="{">
</picture>
);
}
Icon.propTypes = {
"icon": PropTypes.string.isRequired,
"width": numericString(),
"height": numericString(),
"alt": PropTypes.string.isRequired,
"fallbackExtension": PropTypes.string,
};
Icon.defaultProps = {
"fallbackExtension": "png",
};
export default Icon;
return (
<picture>
<source srcset="{" type="image/svg+xml" data-testid="ml-icon__svg">
<img alt="{" srcset="{" src="{">
</picture>
);
}
Icon.propTypes = {
"icon": PropTypes.string.isRequired,
"width": numericString(),
"height": numericString(),
"alt": PropTypes.string.isRequired,
"fallbackExtension": PropTypes.string,
};
Icon.defaultProps = {
"fallbackExtension": "png",
};
export default Icon;