const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
const require_SearchHistory = require("./SearchHistory.js");
const require_SuggestWords = require("./SuggestWords.js");
const require_HotWords = require("./HotWords.js");
let react = require("react");
react = require_runtime.__toESM(react);
//#region src/components/pisellLookup/components/LookupAuxiliary.tsx
/**
* LookupAuxiliary 组件
* 辅助信息层：搜索历史、联想词、热门搜索
*/
const LookupAuxiliary = (props) => {
	const { keyword, showHistory, history = [], showSuggestions, suggestions = [], showHotWords, hotWords = [], onSelect, onRemoveHistory, onClearHistory, historyRender, suggestionsRender, hotWordsRender, className, style } = props;
	const hasHistory = showHistory && history.length > 0;
	const hasSuggestions = showSuggestions && suggestions.length > 0 && keyword;
	const hasHotWords = showHotWords && hotWords.length > 0 && !keyword;
	if (!(hasHistory || hasSuggestions || hasHotWords)) return null;
	return /* @__PURE__ */ react.default.createElement("div", {
		className: `pisell-lookup-auxiliary ${className || ""}`,
		style
	}, hasHistory && /* @__PURE__ */ react.default.createElement(require_SearchHistory.SearchHistory, {
		history,
		onSelect,
		onRemove: onRemoveHistory,
		onClear: onClearHistory,
		render: historyRender
	}), hasSuggestions && /* @__PURE__ */ react.default.createElement(require_SuggestWords.SuggestWords, {
		suggestions,
		onSelect,
		render: suggestionsRender
	}), hasHotWords && /* @__PURE__ */ react.default.createElement(require_HotWords.HotWords, {
		hotWords,
		onSelect,
		render: hotWordsRender
	}));
};
LookupAuxiliary.displayName = "LookupAuxiliary";
//#endregion
exports.LookupAuxiliary = LookupAuxiliary;
