import React from "react";
const IconButton = ({ clickHandler = () => { }, tooltip, iconName = "ff-finsemble", classNames, children, }) => (React.createElement("div", { className: `finsemble-icon__btn ${classNames ? classNames : ""}`, title: tooltip ? tooltip : "", onClick: (e) => clickHandler(e), tabIndex: 0, onKeyDown: (e) => {
        if (e.code === "Space" || e.code === "Enter") {
            e.stopPropagation();
            clickHandler(e);
        }
    } },
    React.createElement("i", { className: iconName }),
    children));
export default IconButton;
//# sourceMappingURL=IconButton.js.map