"use client";
import { jsx as o } from "react/jsx-runtime";
import { useState as m } from "react";
import l from "../../../../modules/HighestStandards/components/TabsMenu/tabsMenu.module.css";
import { TabsMenuItem as i } from "./components/TabsMenutem/TabsMenuItem.es.js";
const I = ({ items: n }) => {
  const [s, r] = m(0), c = (t) => {
    r((e) => e === t ? null : t);
  };
  return /* @__PURE__ */ o("div", { className: l.root, children: n.map((t, e) => /* @__PURE__ */ o(
    i,
    {
      title: t.title,
      content: t.content,
      isOpen: s === e,
      index: e,
      onClick: c
    },
    e
  )) });
};
export {
  I as TabsMenu
};
