first iteration for message bubble layout

This commit is contained in:
Germain Souquet 2021-06-18 18:59:22 +01:00
parent ae5cd9d7ac
commit 6271c5c3d8
8 changed files with 559 additions and 390 deletions

View file

@ -17,11 +17,12 @@ limitations under the License.
import React, {forwardRef} from "react";
export default forwardRef(({mxEvent}, ref) => {
export default forwardRef(({mxEvent, children}, ref) => {
const text = mxEvent.getContent().body;
return (
<span className="mx_UnknownBody" ref={ref}>
{ text }
{ children }
</span>
);
});