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


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

DangerMessageBlock.displayName = "DangerMessageBlock";

export default DangerMessageBlock;
