import { jsx as _jsx } from "react/jsx-runtime";
import { Container, Item } from "./tabs-switch.styled";
const TabsSwitch = ({ items, selected, className, handleSelect, }) => {
    return (_jsx(Container, { className: `ui-tabs-switch ${className ?? ""}`, children: items.map(({ code, label }) => {
            return (_jsx(Item, { className: `ui-tabs-switch__item${code === selected ? " active" : ""}`, onClick: () => {
                    handleSelect(code);
                }, children: label }, code));
        }) }));
};
export default TabsSwitch;
//# sourceMappingURL=tabs-switch.js.map