"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),m=require("../../utils/cn/cn.cjs.js"),e=require("../../src/components/Tag/tag.module.css"),l=require("../Icon/Icon.cjs.js"),u={md:e.labelMd,lg:e.labelLg},j=({value:c,children:o,active:i,disabled:d,size:t="md",prefixIcon:a,suffixIcon:r,onClick:n})=>s.jsx("button",{className:m.cn(e.tag,u[t],{[e.active]:i},e[t]),disabled:d,onClick:()=>c&&(n==null?void 0:n(c)),children:s.jsxs("div",{className:e.content,children:[a&&s.jsx("div",{className:e.iconWrap,children:s.jsx(l.Icon,{name:a})}),s.jsx("p",{children:o}),r&&s.jsx("div",{className:e.iconWrap,children:s.jsx(l.Icon,{name:r})})]})});exports.Tag=j;
