"use client";
import { ChatWindow as e } from "../ui/ChatWindow.js";
import { useState as t } from "react";
import { jsx as n } from "react/jsx-runtime";
//#region lib/examples/chat-window-demo.tsx
function r() {
	let [r, i] = t([{
		id: "1",
		sender: "assistant",
		content: "Hi. Ask me anything about Club Med. I'm here to help you find the right information quickly."
	}, {
		id: "2",
		sender: "user",
		content: "My son is 14 years old, and I would like to find activities for him during our stay."
	}]), [a, o] = t(""), [s, c] = t(!1);
	function l() {
		if (!a.trim()) return;
		let e = {
			id: Date.now().toString(),
			sender: "user",
			content: a
		};
		i((t) => [...t, e]), o(""), c(!0), setTimeout(() => {
			c(!1), i((e) => [...e, {
				id: (Date.now() + 1).toString(),
				sender: "assistant",
				content: "Let me look into that for you…"
			}]);
		}, 2e3);
	}
	return /* @__PURE__ */ n(e, {
		messages: r,
		inputValue: a,
		isTyping: s,
		onInputChange: o,
		onSubmit: l,
		onClose: () => {},
		onAudioClick: () => {},
		className: "w-380 h-660"
	});
}
//#endregion
export { r as default };

//# sourceMappingURL=chat-window-demo.js.map