import { jsxs as i, jsx as s } from "react/jsx-runtime";
import '../../assets/index27.css';const a = "_accordion_1vtp0_6", d = {
  accordion: a
}, m = ({
  children: t,
  open: c,
  summary: r
}) => {
  const e = (n) => {
    const o = n.currentTarget.closest("details");
    !o || !document.startViewTransition || (n.preventDefault(), document.startViewTransition(() => o.open = !o.open));
  };
  return /* @__PURE__ */ i("details", { className: d.accordion, open: c || void 0, "data-component": "accordion", children: [
    /* @__PURE__ */ s("summary", { onClick: e, children: r }),
    t
  ] });
};
export {
  m as Accordion
};
//# sourceMappingURL=index.js.map
