"use strict";var e=require("prop-types"),i=require("@material-ui/core"),l=require("@material-ui/icons"),t=require("react/jsx-runtime"),r=i.makeStyles({chipRoot:{height:"20px",margin:"4px"},chipDeleteIcon:{fontSize:"14px"}}),o=function(e){var o=e.children,n=e.handleDelete,a=e.handleClick,s=e.disabled,c=e.tooltipText,d=r();return t.jsx(i.Tooltip,{title:c,disableFocusListener:s,disableHoverListener:s,disableTouchListener:s,children:t.jsx(i.Chip,{"data-not-migrated-MuiChip":!0,color:"primary",label:o,size:"small",classes:{root:d.chipRoot,deleteIcon:d.chipDeleteIcon},deleteIcon:t.jsx(l.Clear,{}),onDelete:n,onClick:a,clickable:!s})})};o.propTypes={children:e.string.isRequired,handleDelete:e.func,handleClick:e.func,disabled:e.bool,tooltipText:e.string},o.defaultProps={handleDelete:null,handleClick:null,disabled:!1,tooltipText:""},module.exports=o;
