2020-05-08 19:15:59 +01:00
|
|
|
/*
|
2024-09-09 14:57:16 +01:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2020-05-08 19:15:59 +01:00
|
|
|
Copyright 2020 The Matrix.org Foundation C.I.C.
|
2024-09-09 14:57:16 +01:00
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
2020-05-08 19:15:59 +01:00
|
|
|
|
2025-01-06 11:18:54 +00:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
2024-09-09 14:57:16 +01:00
|
|
|
Please see LICENSE files in the repository root for full details.
|
2020-05-08 19:15:59 +01:00
|
|
|
*/
|
|
|
|
|
|
2025-04-24 13:31:37 +01:00
|
|
|
import React, { type JSX } from "react";
|
2020-05-08 19:15:59 +01:00
|
|
|
|
2025-02-05 13:25:06 +00:00
|
|
|
import { type IBodyProps } from "./IBodyProps";
|
2021-06-30 09:00:14 +01:00
|
|
|
|
2025-04-24 13:31:37 +01:00
|
|
|
export default ({ mxEvent, ref }: IBodyProps): JSX.Element => {
|
2020-05-08 19:15:59 +01:00
|
|
|
const text = mxEvent.getContent().body;
|
|
|
|
|
return (
|
2022-04-20 07:48:38 +00:00
|
|
|
<div className="mx_UnknownBody" ref={ref}>
|
2020-05-08 19:15:59 +01:00
|
|
|
{text}
|
2022-04-20 07:48:38 +00:00
|
|
|
</div>
|
2020-05-08 19:15:59 +01:00
|
|
|
);
|
2025-04-24 13:31:37 +01:00
|
|
|
};
|