Created
November 28, 2018 01:10
-
-
Save dburles/08930f72541b8accbe10c41b54c138a3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PropTypes from 'prop-types'; | |
import React from 'react'; | |
const Icon = props => { | |
return ( | |
<svg | |
width={props.width} | |
height={props.height} | |
xmlns="http://www.w3.org/2000/svg" | |
viewBox="0 0 500 500" | |
> | |
{props.icon} | |
</svg> | |
); | |
}; | |
Icon.propTypes = { | |
icon: PropTypes.node.isRequired, | |
width: PropTypes.number.isRequired, | |
height: PropTypes.number.isRequired | |
}; | |
export default Icon; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment