import React from "react";
import { fashion_class_lookup } from "./Button";
import "./css/button.css";
import { FinsembleIcon } from "./FinsembleIcon";
export const ButtonIcon = ({ icon, text = "", displayText = false, disabled = false, tabIndex = 0, onClick = () => { }, className = "", buttonAttributes = {}, }) => {
    const containerClassName = fashion_class_lookup.icon;
    return (React.createElement("div", { className: `${containerClassName} ${className}` },
        React.createElement("button", { ...buttonAttributes, onClick: onClick, disabled: disabled, title: text, "aria-label": text, tabIndex: tabIndex },
            React.createElement(FinsembleIcon, { icon: icon }),
            displayText && React.createElement("span", { className: "btn-label" }, text))));
};
//# sourceMappingURL=ButtonIcon.js.map