import { a as e, o as t, t as n } from "./SearchDialog-tUSKKsxW.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, maxResults: n, placeholder: r, openSignal: o }) {
	return /* @__PURE__ */ i(e, {
		lang: t,
		maxResults: n,
		enableHotkeys: !1,
		children: /* @__PURE__ */ i(a, {
			openSignal: o,
			placeholder: r
		})
	});
}
//#endregion
export { o as default };
