/home/techb158/l2hypotheques.com/wp-content/plugins/really-simple-ssl/settings/src/utils
Edit: /home/techb158/l2hypotheques.com/wp-content/plugins/really-simple-ssl/settings/src/utils/Icon.js (37064B)
// import Tooltip from '@mui/material/Tooltip';
import { Tooltip } from "react-tooltip";
// import {styled} from "@mui/material/styles";
// import {opacity} from "../../../../../../wp-includes/js/codemirror/csslint";
const IconHtml = React.forwardRef(function IconHtml(props, ref){
const {name, color, size} = props;
// set defaults
const iconName = name || 'bullet';
const iconColor = color || 'black';
const iconSize = size || 15;
const iconColors = {
'black': 'var(--rsp-black)',
'green': 'var(--rsp-green)',
'yellow': 'var(--rsp-yellow)',
'orange': 'var(--rsp-yellow)',
'red-faded': 'var(--rsp-red-faded)',
'red': 'var(--rsp-red)',
'grey': 'var(--rsp-grey-400)',
'red-warning': 'var(--rsp-red-faded)',
};
let renderedIcon = '';
if (iconName === 'bullet') {
renderedIcon =
}
if (iconName === 'circle') {
renderedIcon =
}
if (iconName === 'check') {
renderedIcon =
}
if (iconName === 'warning') {
renderedIcon =
}
if (iconName === 'error') {
renderedIcon =
}
if (iconName === 'times') {
renderedIcon =
}
if (iconName === 'circle-check') {
renderedIcon =
}
if (iconName === 'circle-times') {
renderedIcon =
}
if (iconName === 'chevron-up') {
renderedIcon =
}
if (iconName === 'chevron-down') {
renderedIcon =
}
if (iconName === 'chevron-right') {
renderedIcon =
}
if (iconName === 'chevron-left') {
renderedIcon =
}
if (iconName === 'plus') {
renderedIcon =
}
if (iconName === 'minus') {
renderedIcon =
}
if (iconName === 'sync') {
renderedIcon =
}
if (iconName === 'sync-error') {
renderedIcon =
}
if (iconName === 'shortcode') {
renderedIcon =
}
if (iconName === 'file') {
renderedIcon =
}
if (iconName === 'file-disabled') {
renderedIcon =
}
if (iconName === 'loading') {
renderedIcon =
}
if (iconName === 'file-download') {
renderedIcon =
}
if (iconName === 'calendar') {
renderedIcon =
}
if (iconName === 'calendar-error') {
renderedIcon =
}
if (iconName === 'help') {
renderedIcon =
}
if (iconName === 'copy') {
renderedIcon =
}
if (iconName === 'info') {
renderedIcon =
}
if (iconName === 'info-open') {
renderedIcon =
}
if (iconName === 'list') {
renderedIcon =
}
if (iconName === 'empty') {
renderedIcon =
}
if (iconName === 'external-link') {
renderedIcon =
}
if (iconName === 'shield') {
renderedIcon =
}
if (iconName === 'file-search') {
renderedIcon =
}
if (iconName === 'download') {
renderedIcon =
}
if (iconName === 'satellite-dish') {
renderedIcon =
}
if (iconName === 'rotate-light') {
renderedIcon =
}
if (iconName === 'rotate-exclamation-light') {
renderedIcon =
}
if (iconName === 'radar-duotone') {
renderedIcon =
}
if (iconName === 'satellite-dish-duotone') {
renderedIcon =
}
if (iconName === 'spinner') {
renderedIcon =
}
return (
{renderedIcon}
)
});
const Icon = ({name, color, size, tooltip}) => {
// set defaults if not set
const iconName = name || 'bullet';
const iconColor = color || 'black';
let iconSize = size || 15;
let tooltipClass = tooltip ? 'tooltip-' : '';
let randomId= Math.floor(Math.random() * 1000000000);
if ( tooltip ) {
return (
);
}
return (
);
}
export default Icon;