-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
1 lines (1 loc) · 1.35 KB
/
index.js
1
"use strict";var t=require("react/jsx-runtime"),e=require("@mui/material"),o=require("@mui/material/styles"),r=require("@mui/material/Button"),n=function(){return n=Object.assign||function(t){for(var e,o=1,r=arguments.length;o<r;o++)for(var n in e=arguments[o])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},n.apply(this,arguments)},a="#6B38FB",i="#9B9EFF",l="#100F18",c="#F6F8FC",u=o.styled(r)((function(t){var e=t.theme;return{fontWeight:"bold",textTransform:"none",borderRadius:10,padding:"1.25rem",maxHeight:"2.5rem","&.MuiButton-outlined":{borderColor:e.palette.secondary.main},"&.Mui-disabled":{color:"white",backgroundColor:"rgba(107, 56, 251, 0.8)"},"&.MuiButton-text":{color:"light"===e.palette.mode?l:c},"&:hover":{backgroundColor:"light"===e.palette.mode?c:i,color:"white",boxShadow:"0px 0px 2px ".concat("light"===e.palette.mode?"#DADADA":i)},"&.MuiButton-contained":{backgroundColor:a,color:"white",boxShadow:"0px 0px 2px ".concat("light"===e.palette.mode?"#DADADA":i),"&:hover":{backgroundColor:i}}}}));exports.Button=function(o){var r=o.iconOnly,a=o.startIcon,i=o.endIcon,l=o.tooltip,c=o.tooltipPlacement,d=o.children;return l?t.jsx(e.Tooltip,n({title:l,enterDelay:700,leaveDelay:50,arrow:!0,placement:c},{children:t.jsx(u,n({},o,{startIcon:r?"":a,endIcon:r?"":i},{children:d}))})):t.jsx(u,n({},o,{startIcon:r?"":a,endIcon:r?"":i},{children:d}))};