"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_rollupPluginBabelHelpers.js");require("react");var r,n=require("@mui/material/Tooltip"),t=require("@mui/icons-material/Add"),i=require("styled-components"),a=require("@mui/icons-material/Cancel"),o=require("@mui/icons-material/Delete"),s=require("@mui/icons-material/Edit"),u=require("@mui/icons-material/Save"),c=require("@mui/icons-material/Close"),l=require("./CopyIcon.js"),d=require("@mui/icons-material/KeyboardArrowDown"),p=require("@mui/icons-material/KeyboardArrowUp"),m=require("@mui/icons-material/Autorenew"),x=require("../../_virtual/index.js"),y=require("react/jsx-runtime");function j(r){return y.jsx(n,{title:r.description,children:y.jsx(q,{name:r.name,onClick:r.onClick,readOnly:r.readOnly,children:function(){switch(r.type){case"add":return y.jsx(t,{});case"cancel":return y.jsx(a,{});case"delete":return y.jsx(o,{});case"edit":return y.jsx(s,{});case"save":return y.jsx(u,{});case"close":return y.jsx(c,{});case"copy":return y.jsx(l.CopyIcon,e.objectSpread2({},r));case"up":return y.jsx(p,{});case"down":return y.jsx(d,{});case"refresh":return y.jsx(m,{});default:return y.jsxs(y.Fragment,{children:["Not found type: ",r.type]})}}()})})}var f=["add","cancel","delete","edit","save","close","copy","up","down","refresh"];j.propTypes=e.objectSpread2({type:x.default.oneOf(f),name:x.default.string,description:x.default.string,onClick:x.default.func,readOnly:x.default.bool},l.CopyIcon.propTypes);var q=i.button(r||(r=e.taggedTemplateLiteral(["\n  display: flex;\n  cursor: pointer;\n  border: none;\n  padding: 0;\n  background-color: transparent;\n  pointer-events: ",";\n"])),function(e){return e.readOnly?"none":"auto"});exports.BTN=q,exports.Icon=j,exports.default=j,exports.iconTypes=f;
//# sourceMappingURL=Icon.js.map
