@centreon/react-components
Version:
react components used by centreon web frontend
28 lines (24 loc) • 660 B
JavaScript
/* eslint-disable react/jsx-filename-extension */
/* eslint-disable react/prop-types */
import React from 'react';
import classnames from 'classnames';
import styles from './icon-round.scss';
const IconRound = ({ iconColor, iconType, iconTitle, iconPosition }) => {
const cnIconsRound = classnames(
styles.icon,
styles['icons-round'],
styles[iconColor],
);
const cnIconType = classnames(
'icon',
styles.iconmoon,
styles[`icon-${iconType}`],
styles[iconPosition || ''],
);
return (
<span className={cnIconsRound}>
<span className={cnIconType} title={iconTitle} />
</span>
);
};
export default IconRound;