"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const require$$0 = require("react/jsx-runtime");
const designSystem = require("@choiceform/design-system");
const iconsReact = require("@choiceform/icons-react");
const react = require("../../../../_vendor/@legendapp/state/react.cjs");
const index = require("../../../../i18n/index.cjs");
const promptInputContext = require("../../context/prompt-input-context.cjs");
const PromptContextMenu = react.observer(function PromptContextMenu2() {
  const { attachmentEnabled, handleFileButtonClick } = promptInputContext.usePromptInputContext();
  const addContext = index.t("prompt-input", "add-context");
  const attachFiles = index.t("prompt-input", "attach-files");
  return /* @__PURE__ */ require$$0.jsxs(designSystem.Dropdown, { children: [
    /* @__PURE__ */ require$$0.jsx(designSystem.Dropdown.Trigger, { asChild: true, children: (active) => /* @__PURE__ */ require$$0.jsx(
      designSystem.IconButton,
      {
        tooltip: {
          disabled: active,
          content: addContext
        },
        children: /* @__PURE__ */ require$$0.jsx(iconsReact.PromptToolbarAdd, {})
      }
    ) }),
    /* @__PURE__ */ require$$0.jsx(designSystem.Dropdown.Content, { children: /* @__PURE__ */ require$$0.jsx(
      designSystem.Dropdown.Item,
      {
        prefixElement: /* @__PURE__ */ require$$0.jsx(iconsReact.PromptToolbarAttach, {}),
        onClick: handleFileButtonClick,
        disabled: !attachmentEnabled,
        children: /* @__PURE__ */ require$$0.jsx(designSystem.Dropdown.Value, { children: attachFiles })
      }
    ) })
  ] });
});
exports.PromptContextMenu = PromptContextMenu;
//# sourceMappingURL=prompt-context-menu.cjs.map
