import { j as s } from "./DocsApp-CEu0IOyd.js";
import { useEffect as o } from "react";
import { S as i, u, a as n } from "./SearchDialog-B67saUjp.js";
function c({
  openSignal: e,
  placeholder: t
}) {
  const { setOpen: r } = u();
  return o(() => {
    e > 0 && r(!0);
  }, [e, r]), /* @__PURE__ */ s.jsx(n, { placeholder: t });
}
function x({
  lang: e,
  maxResults: t,
  placeholder: r,
  openSignal: a
}) {
  return /* @__PURE__ */ s.jsx(
    i,
    {
      lang: e,
      maxResults: t,
      enableHotkeys: !1,
      children: /* @__PURE__ */ s.jsx(c, { openSignal: a, placeholder: r })
    }
  );
}
export {
  x as default
};
