"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Tab = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const styles_1 = require("./styles");
const Tab = ({ label, count, max = 99, ...rest }) => {
    let tabText = label;
    if (count) {
        const counter = count > max ? `${max}+` : count;
        tabText = `${label} · ${counter}`;
    }
    return (0, jsx_runtime_1.jsx)(styles_1.StyledTab, { ...rest, tabIndex: 0, label: tabText });
};
exports.Tab = Tab;
