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.

23 lines
664 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
2024-09-09 14:57:16 +01:00
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
Please see LICENSE files in the repository root for full details.
2020-05-08 19:15:59 +01:00
*/
2023-07-07 13:37:26 +01:00
import React, { forwardRef, ForwardRefExoticComponent } from "react";
2020-05-08 19:15:59 +01:00
2023-07-07 13:37:26 +01:00
import { IBodyProps } from "./IBodyProps";
2021-06-30 09:00:14 +01:00
2023-07-07 13:37:26 +01:00
export default forwardRef<HTMLDivElement, IBodyProps>(({ mxEvent, children }, ref) => {
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}
2021-06-18 18:59:22 +01:00
{children}
</div>
2020-05-08 19:15:59 +01:00
);
2023-07-07 13:37:26 +01:00
}) as ForwardRefExoticComponent<IBodyProps>;