mirror of https://github.com/ANL-CEEESA/RELOG.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
507 B
22 lines
507 B
import styles from './Button.module.css';
|
|
|
|
const Button = (props) => {
|
|
let className = styles.Button;
|
|
if (props.kind === "inline") {
|
|
className += " " + styles.inline;
|
|
}
|
|
|
|
let tooltip = "";
|
|
if (props.tooltip != undefined) {
|
|
tooltip = <span className={styles.tooltip}>{props.tooltip}</span>;
|
|
}
|
|
|
|
return (
|
|
<button className={className} onClick={props.onClick}>
|
|
{tooltip}
|
|
{props.label}
|
|
</button>
|
|
);
|
|
};
|
|
|
|
export default Button; |