"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("../../utils/cn/cn.cjs.js"),n=require("../../src/components/ContentTabs/contentTabs.module.css"),d=require("../IconBracket/IconBracket.cjs.js"),m=require("../Icon/Icon.cjs.js"),o=require("../Typography/Typography.cjs.js");function u({tabs:a,activeTab:c,colorScheme:i,activeWithArrow:t,onTabClick:l}){return e.jsx("div",{className:r.cn(n.root,n[i]),children:a.map(s=>e.jsxs("div",{className:n.tabWrap,children:[e.jsxs("button",{className:r.cn(n.tab,{[n.activeTab]:c.label===s.label}),onClick:()=>l(s),children:[c.label===s.label&&t&&e.jsx("div",{className:n.arrow,children:e.jsx(d.IconBracket,{variant:"arrow",size:"md",colorScheme:i})}),s.icon&&e.jsx(m.Icon,{name:s.icon,className:n.icon}),e.jsx(o.Typography,{defaultVariant:"headingXxs",children:s.label})]}),e.jsx("div",{className:r.cn(n.itemContent,{[n.itemContentOpen]:c.label===s.label}),children:e.jsx("div",{className:n.itemContentInner,children:e.jsx(o.Typography,{as:"div",defaultVariant:"bodySm",children:s.description})})})]},String(s.label)))})}exports.ContentTabs=u;
