@veracity/vui
Version:
Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.
33 lines (31 loc) • 862 B
JavaScript
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__ = "5.3.0-alpha.2"
//# sourceMappingURL=chatMessage.js.map