import{__rest as r,__assign as a}from'./../../../../ext-esm/tslib/tslib.es6.js';import{jsx as o}from"react/jsx-runtime";import{forwardRef as t,memo as e}from"react";import{makeStyles as n,Button as l}from"@material-ui/core";import i from"classnames";var c=n((function(r){return{label:{whiteSpace:"nowrap"},dangerPrimary:{color:r.palette.background.b2,backgroundColor:"".concat(r.palette.error.dark," !important"),"&:hover":{backgroundColor:"".concat(r.palette.error.main," !important")}},tertiary:{color:r.palette.primary.text6,backgroundColor:"rgba(255, 255, 255, 0.08)",textTransform:"capitalize","&:hover":{color:r.palette.primary.contrastText,backgroundColor:"rgba(255, 255, 255, 0.16)"}},dangerPrimaryDisabled:{backgroundColor:r.palette.error.dark,color:"".concat(r.palette.background.b2," !important")},dangerSecondary:{color:r.palette.error.dark,"&:hover":{color:r.palette.error.main,backgroundColor:"rgba(244, 67, 54, 0.24)"}},dangerSecondaryDisabled:{color:"".concat(r.palette.error.dark," !important")}}})),d=t((function(t,e){var n=t.classes,d=void 0===n?{}:n,s=t.variation,m=r(t,["classes","variation"]),p=c(),u=a(a({},d),{root:i(null==p?void 0:p[s],d.root),label:i(null==p?void 0:p.label,d.label),disabled:i(null==p?void 0:p["".concat(s,"Disabled")],d.disabled)}),b=a(a(a({classes:u},function(r){return{primary:{color:"primary",variant:"contained"},secondary:{color:"primary"},dangerPrimary:{variant:"contained"}}[r]||{}}(t.variation)),m),{ref:e});return o(l,a({"data-testid":"Button_".concat(t.children)},b))}));d.defaultProps={variation:"default"};var s=e(d);export{s as default};
