"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),r=require("react/jsx-runtime"),t=require("react"),a=require("@material-ui/core"),i=require("classnames"),s=require("./ButtonIcon.scss.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=d(i),o={large:s.large,medium:s.medium,small:s.small},n={primary:[s.primary],secondary:[s.secondary],tertiary:[s.tertiary],secondaryBg:[s.secondary,s.withBg],tertiaryBg:[s.tertiary,s.withBg]},c=t.forwardRef((function(t,i){var d=t.children,c=t.disabled,u=t.testId,y=t.className,m=t.onClick,p=t.type,_=void 0===p?"tertiary":p,f=t.size,b=void 0===f?"medium":f,g=e.__rest(t,["children","disabled","testId","className","onClick","type","size"]);return r.jsx(a.IconButton,e.__assign({ref:i,className:l.default.apply(void 0,e.__spreadArray(e.__spreadArray([s.root,o[b]],n[_],!1),[c&&s.disabled,y],!1)),onClick:m,disabled:c,"data-testid":u},g,{children:d}))}));exports.ButtonIcon=c;
