"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("./Button.scss.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=c(i),n={primary:{variant:"contained",color:"primary"},secondary:{variant:"text",color:"primary"},primaryDestructive:{variant:"contained",color:"primary"},secondaryDestructive:{variant:"text",color:"primary"},tertiary:{variant:"text",color:"default"},chart:{variant:"text",color:"default"}},d={primaryDestructive:s.primaryDestructive,secondaryDestructive:s.secondaryDestructive,chart:s.chart},u=t.forwardRef((function(t,i){var c=t.children,u=t.onClick,l=t.size,f=void 0===l?"medium":l,v=t.type,y=void 0===v?"secondary":v,m=t.prefix,p=t.suffix,x=t.disabled,b=t.testId,_=t.className,h=e.__rest(t,["children","onClick","size","type","prefix","suffix","disabled","testId","className"]);return r.jsx(a.Button,e.__assign({},n[y],{size:f,ref:i,disabled:x,className:o.default(s.root,d[y],x&&s.disabled,_),"data-testid":b,startIcon:m,endIcon:p,onClick:u},h,{children:c}))}));exports.Button=u;
