import { a as e, o as t, t as n } from "./SearchDialog-DWVre6R9.js";
import { useEffect as r } from "react";
import { jsx as i } from "react/jsx-runtime";
//#region src/components/search/SearchRuntime.tsx
function a({ openSignal: e, placeholder: a }) {
	let { setOpen: o } = t();
	return r(() => {
		e > 0 && o(!0);
	}, [e, o]), /* @__PURE__ */ i(n, { placeholder: a });
}
function o({ lang: t, version: n, maxResults: r, placeholder: o, openSignal: s }) {
	return /* @__PURE__ */ i(e, {
		lang: t,
		version: n,
		maxResults: r,
		enableHotkeys: !1,
		children: /* @__PURE__ */ i(a, {
			openSignal: s,
			placeholder: o
		})
	});
}
//#endregion
export { o as default };
