mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-02 14:15:06 +01:00
23 lines
593 B
JavaScript
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,
|
|
};
|