import{__rest as r,__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import{forwardRef as i}from"react";import{Button as a}from"@material-ui/core";import o from"classnames";import s from"./Button.scss.js";var c={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"}},n={primaryDestructive:s.primaryDestructive,secondaryDestructive:s.secondaryDestructive,chart:s.chart},d=i((function(i,d){var m=i.children,l=i.onClick,p=i.size,u=void 0===p?"medium":p,f=i.type,v=void 0===f?"secondary":f,y=i.prefix,x=i.suffix,b=i.disabled,h=i.testId,D=i.className,I=r(i,["children","onClick","size","type","prefix","suffix","disabled","testId","className"]);return e(a,t({},c[v],{size:u,ref:d,disabled:b,className:o(s.root,n[v],b&&s.disabled,D),"data-testid":h,startIcon:y,endIcon:x,onClick:l},I,{children:m}))}));export{d as Button};
