import { jsxs, jsx } from "react/jsx-runtime";
import { Button } from "@choiceform/design-system";
import { Search } from "@choiceform/icons-react";
import { memo } from "react";
import { t } from "../../../../i18n/index.js";
import { promptResearchSwitchTv } from "./tv.js";
import { usePromptInputContext } from "../../context/prompt-input-context.js";
const PromptResearchSwitch = memo(function PromptResearchSwitch2(props) {
  const { className, ...rest } = props;
  const { isDeepThinkingEnabled, toggleDeepThinking } = usePromptInputContext();
  const research = t("prompt-input", "research");
  const tv = promptResearchSwitchTv({ isDeepThinkingEnabled });
  return /* @__PURE__ */ jsxs(
    Button,
    {
      variant: "ghost",
      size: "default",
      onClick: toggleDeepThinking,
      className: tv.button({ className }),
      ...rest,
      children: [
        /* @__PURE__ */ jsx(Search, {}),
        research
      ]
    }
  );
});
export {
  PromptResearchSwitch
};
//# sourceMappingURL=prompt-research-switch.js.map
