"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),v=require("../../utils/cn/cn.cjs.js"),e=require("../../src/components/TextButton/textButton.module.css"),o=require("../Icon/Icon.cjs.js"),b=({size:a="sm",as:i="button",disabled:n=!1,inverted:r=!1,children:l,prefixIcon:t,suffixIcon:c,hideOn:d,...u})=>{const m=e[a]||"",j=r?e.inverted:"",x=n?e.disabled:"";return s.jsx(i,{...u,className:v.cn(e.button,j,m,x),disabled:n,"data-hide-on":d,children:s.jsxs("div",{className:e.content,children:[t&&s.jsx("div",{className:e.iconWrap,children:s.jsx(o.Icon,{name:t})}),s.jsx("div",{children:l}),c&&s.jsx("div",{className:e.iconWrap,children:s.jsx(o.Icon,{name:c})})]})})};exports.TextButton=b;
