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


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

WarningMessageBlock.displayName = "WarningMessageBlock";

export default WarningMessageBlock;
