Files
ThreadNet-Web/src/components/views/messages/UnknownBody.tsx
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
584 B
TypeScript
Raw Normal View History

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
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
*/
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
export default ({ mxEvent, ref }: IBodyProps): JSX.Element => {
2020-05-08 19:15:59 +01:00
const text = mxEvent.getContent().body;
return (
<div className="mx_UnknownBody" ref={ref}>
2020-05-08 19:15:59 +01:00
{text}
</div>
2020-05-08 19:15:59 +01:00
);
};