"use client";
import { j as s } from "../../../node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.mjs";
import t from "./InfoButton.module.scss.mjs";
import i from "../../../node_modules/.pnpm/@tabler_icons-react@3.34.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconInfoCircle.mjs";
import r from "../../../node_modules/.pnpm/@tabler_icons-react@3.34.0_react@19.1.0/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleX.mjs";
function f({
  opened: o,
  onClick: n,
  i18n: e = { info: "Info", close: "Close" }
}) {
  return /* @__PURE__ */ s.jsxs("button", { className: t.button, onClick: n, children: [
    !o && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
      /* @__PURE__ */ s.jsx(i, { size: 24 }),
      /* @__PURE__ */ s.jsx("div", { className: "caption", children: e.info })
    ] }),
    o && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
      /* @__PURE__ */ s.jsx(r, { size: 24 }),
      /* @__PURE__ */ s.jsx("div", { className: "caption", children: e.close })
    ] })
  ] });
}
export {
  f as default
};
//# sourceMappingURL=index.mjs.map
