import { jsxs, jsx } from "react/jsx-runtime";
import { Dropdown, IconButton } from "@choiceform/design-system";
import { PromptToolbarAdd, PromptToolbarAttach } from "@choiceform/icons-react";
import { observer } from "../../../../_vendor/@legendapp/state/react.js";
import { t } from "../../../../i18n/index.js";
import { usePromptInputContext } from "../../context/prompt-input-context.js";
const PromptContextMenu = observer(function PromptContextMenu2() {
  const { attachmentEnabled, handleFileButtonClick } = usePromptInputContext();
  const addContext = t("prompt-input", "add-context");
  const attachFiles = t("prompt-input", "attach-files");
  return /* @__PURE__ */ jsxs(Dropdown, { children: [
    /* @__PURE__ */ jsx(Dropdown.Trigger, { asChild: true, children: (active) => /* @__PURE__ */ jsx(
      IconButton,
      {
        tooltip: {
          disabled: active,
          content: addContext
        },
        children: /* @__PURE__ */ jsx(PromptToolbarAdd, {})
      }
    ) }),
    /* @__PURE__ */ jsx(Dropdown.Content, { children: /* @__PURE__ */ jsx(
      Dropdown.Item,
      {
        prefixElement: /* @__PURE__ */ jsx(PromptToolbarAttach, {}),
        onClick: handleFileButtonClick,
        disabled: !attachmentEnabled,
        children: /* @__PURE__ */ jsx(Dropdown.Value, { children: attachFiles })
      }
    ) })
  ] });
});
export {
  PromptContextMenu
};
//# sourceMappingURL=prompt-context-menu.js.map
