Private Message Thread
The Private Message Thread component renders the conversation thread between users, and it is composed of different message items that contain
the body of the message related to their type("text", "document", "image" or "video").
Usage
import React from 'react';
import {SCContextProvider} from '@selfcommunity/react-core';
import {PrivateMessageThread} from '@selfcommunity/react-ui';
function App() {
const conf = {
portal: '<community-path>',
session: {
type: 'OAuth',
token: '<community-token>',
refreshToken: '<community-refresh-token>',
refreshTokenEndpoint: '<community-refresh-endpoint>',
},
};
return (
<SCContextProvider conf={conf}><PrivateMessageThread /></SCContextProvider>
);
}