import { cn as e } from "../../../lib/utils.js";
import { i as t, n, r, t as i } from "../../../tooltip-34vRSwJG.js";
import { o as a, r as o, t as s } from "../../../avatar-BSYWkGGc.js";
import { t as c } from "../../../markdown-D3ExE6yF.js";
import { jsx as l, jsxs as u } from "react/jsx-runtime";
//#region lib/components/ui/molecules/message.tsx
function d({ children: t, className: n, ...r }) {
	return /* @__PURE__ */ l("div", {
		className: e("flex items-start gap-3", n),
		...r,
		children: t
	});
}
function f({ src: t, alt: n, fallback: r, className: i }) {
	return /* @__PURE__ */ u(s, {
		className: e("h-8 w-8 shrink-0", i),
		children: [/* @__PURE__ */ l(a, {
			alt: n,
			src: t
		}), r && /* @__PURE__ */ l(o, { children: r })]
	});
}
function p({ children: t, markdown: n = !1, className: r, ...i }) {
	let a = e("prose whitespace-normal break-words rounded-lg bg-secondary px-4 py-2 text-foreground", r);
	return l(n ? c : "div", {
		className: a,
		...i,
		children: t
	});
}
function m({ children: t, className: n, ...r }) {
	return /* @__PURE__ */ l("div", {
		className: e("flex items-center gap-2 text-muted-foreground", n),
		...r,
		children: t
	});
}
function h({ tooltip: e, children: a, className: o, side: s = "top", ...c }) {
	return /* @__PURE__ */ l(r, { children: /* @__PURE__ */ u(i, {
		...c,
		children: [/* @__PURE__ */ l(t, { render: a }), /* @__PURE__ */ l(n, {
			className: o,
			side: s,
			children: e
		})]
	}) });
}
//#endregion
export { d as Message, h as MessageAction, m as MessageActions, f as MessageAvatar, p as MessageContent };
