import { cs } from "../utils/styles.js";
import { useStyleConfig } from "../core/theme.js";
import vui from "../core/vui.js";
import Message from "../message/message.js";
import { jsx } from "react/jsx-runtime";

//#region src/chat/chatMessage.tsx
const defaultAvatar = {
	variant: "solidDarkBlue",
	icon: "brandVeracity"
};
/**
* Displays a chat interface with messages and actions.
*/
const ChatMessage = vui((props, ref) => {
	const styles = useStyleConfig("Chat", props);
	const { avatar = defaultAvatar, ...rest } = props;
	return /* @__PURE__ */ jsx(Message, {
		avatar,
		className: cs("vui-chat-message"),
		h: "100%",
		my: "16px",
		ref,
		...styles?.message,
		...rest
	});
});
ChatMessage.displayName = "ChatMessage";

//#endregion
export { ChatMessage as default };
globalThis.__vuiVersion__ = "4.0.1"
//# sourceMappingURL=chatMessage.js.map