: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
import React from "react";
import classnames from "classnames";
export default function Button(
function handleClick(e) {
const iconTag = icon ? <span className={icon} aria-hidden="true"/> : "";
<span className={classnames({"sui-loading-text": loading})}>
? <span className="sui-icon-loader sui-loading" aria-hidden="true"/>
props = {href: href, target: target};
onClick: e => handleClick(e)
const hasText = text && text.trim();
className={classnames(className, "sui-button-" + color, {
"sui-button-onload": loading,
"sui-button-ghost": ghost,
"sui-button-icon": !hasText,
"sui-button-dashed": dashed,