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


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

PrimaryMessageBlock.displayName = "PrimaryMessageBlock";

export default PrimaryMessageBlock;
