import e from"../../node_modules/classnames/index.js";import o from"../../node_modules/lodash/isNil.js";import l from"react";import r from"../Clickable/Clickable.js";import t from"../Text/Text.js";import i from"./Pill.module.scss.js";const s=({children:s,color:m="primary",small:c=!1,title:n,...a})=>{const p=e(i.root,{[i.small]:c,[i?.[m]]:m,[i.clickable]:!o(a.onClick)||!o(a.href),"cursor-pointer":!o(a.onClick)||!o(a.href)}),d=o(a.onClick)&&o(a.href)?"div":r;return l.createElement("div",{className:p},l.createElement(d,{...a},l.createElement(t,{component:"span",lineClamp:1,size:c?3:2,title:n??"string"==typeof s?`${s}`:void 0},s)))};export{s as default};
//# sourceMappingURL=Pill.js.map
