mirror of https://github.com/trezor/trezor-wallet
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
723 B
38 lines
723 B
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
const Icon = ({ icon, size = 30, color = 'black' }) => {
|
|
const styles = {
|
|
svg: {
|
|
display: 'inline-block',
|
|
verticalAlign: 'middle',
|
|
},
|
|
path: {
|
|
fill: color,
|
|
},
|
|
};
|
|
|
|
return (
|
|
<svg
|
|
style={styles.svg}
|
|
width={`${size}`}
|
|
height={`${size}`}
|
|
viewBox="0 0 16 16"
|
|
>
|
|
<path
|
|
style={styles.path}
|
|
d={icon}
|
|
|
|
/>
|
|
</svg>
|
|
);
|
|
};
|
|
|
|
Icon.propTypes = {
|
|
icon: PropTypes.string.isRequired,
|
|
size: PropTypes.number,
|
|
color: PropTypes.string,
|
|
};
|
|
|
|
|
|
export default Icon; |