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