mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-02 14:15:06 +01:00
17 lines
393 B
JavaScript
17 lines
393 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
export default function IconBorder({ children, size }) {
|
|
const borderStyle = { height: `${size}px`, width: `${size}px` };
|
|
return (
|
|
<div className="icon-border" style={borderStyle}>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
IconBorder.propTypes = {
|
|
children: PropTypes.node.isRequired,
|
|
size: PropTypes.number.isRequired,
|
|
};
|