Skip to content

Instantly share code, notes, and snippets.

@dburles
Created November 28, 2018 01:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dburles/08930f72541b8accbe10c41b54c138a3 to your computer and use it in GitHub Desktop.
Save dburles/08930f72541b8accbe10c41b54c138a3 to your computer and use it in GitHub Desktop.
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