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