27 lines
589 B
TypeScript
27 lines
589 B
TypeScript
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"
|
|
{...messageProps}
|
|
className={clsx(
|
|
className,
|
|
"bg-warning-xlight text-warning-dark"
|
|
)}
|
|
ref={ref}
|
|
/>
|
|
);
|
|
});
|
|
|
|
WarningMessageBlock.displayName = "WarningMessageBlock";
|
|
|
|
export default WarningMessageBlock;
|