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


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

SuccessMessageBlock.displayName = "SuccessMessageBlock";

export default SuccessMessageBlock;
