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/url-icon/url-icon.js
2021-06-06 12:45:27 -02:30

23 lines
593 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import IconWithFallback from '../icon-with-fallback';
export default function UrlIcon({ url, className, name, fallbackClassName }) {
return (
<IconWithFallback
className={classnames('url-icon', className)}
icon={url}
name={name}
fallbackClassName={classnames('url-icon__fallback', fallbackClassName)}
/>
);
}
UrlIcon.propTypes = {
url: PropTypes.string,
className: PropTypes.string,
name: PropTypes.string,
fallbackClassName: PropTypes.string,
};