"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("../../_virtual/jsx-runtime.js"),c=require("./styles.js"),o=require("./utils.js"),g=require("../../utils/index.js");function x({label:t,variant:d="neutral",icon:a,size:r="large",isSubtle:n,className:s,...e}){const u=o.getTagComponent(d),l=g.getId(e["data-testid"]);return i.jsxRuntimeExports.jsxs(u,{className:s,size:r,isSubtle:n,"data-testid":e["data-testid"],"data-trackid":e["data-trackid"],"aria-label":e["aria-label"]||t,children:[a&&r==="large"&&i.jsxRuntimeExports.jsx(c.IconWrapper,{"data-testid":l("icon"),children:a}),t]})}exports.Tag=x;
