import type { MessageBlockProps } from "$/types/MessageTypes";
import clsx from "clsx";
import { forwardRef } from "react";
import MessageBlock from "./MessageBlock";


const InfoMessageBlock = forwardRef<HTMLDivElement, MessageBlockProps>(({
	className,
	...messageProps
}, ref ) => {
	return (
		<MessageBlock
			data-testid="mattrixwv-info-message-block"
			className={clsx(
				className,
				"bg-info-xlight text-info-xdark"
			)}
			ref={ref}
			{...messageProps}
		/>
	);
});

InfoMessageBlock.displayName = "InfoMessageBlock";

export default InfoMessageBlock;
