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