@centreon/react-components
Version:
react components used by centreon web frontend
17 lines (13 loc) • 477 B
JavaScript
/* eslint-disable react/jsx-filename-extension */
/* eslint-disable react/button-has-type */
/* eslint-disable react/prop-types */
import React from 'react';
import classnames from 'classnames';
import styles from './custom-button.scss';
const CustomButton = ({ color, label }) => {
const cn = classnames(styles['custom-button'], {
[styles[`custom-button-${color || ''}`]]: true,
});
return <button className={cn}>{label}</button>;
};
export default CustomButton;