Update themed components with refs and css

This commit is contained in:
2026-02-10 21:09:36 -05:00
parent 456feed128
commit 2e54b81d8f
72 changed files with 1147 additions and 562 deletions

View File

@@ -1,15 +1,13 @@
import type { MessageBlockProps } from "$/types/MessageTypes";
import clsx from "clsx";
import { forwardRef } from "react";
import MessageBlock from "./MessageBlock";
export default function LightMessageBlock(props: MessageBlockProps){
const {
className,
...messageProps
} = props;
const LightMessageBlock = forwardRef<HTMLDivElement, MessageBlockProps>(({
className,
...messageProps
}, ref ) => {
return (
<MessageBlock
data-testid="mattrixwv-light-message-block"
@@ -18,6 +16,11 @@ export default function LightMessageBlock(props: MessageBlockProps){
className,
"bg-white text-black"
)}
ref={ref}
/>
);
}
});
LightMessageBlock.displayName = "LightMessageBlock";
export default LightMessageBlock;