1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-02 14:15:06 +01:00
metamask-extension/ui/components/ui/icon-border/icon-border.js
2021-06-06 12:45:27 -02:30

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,
};