Skip to main content

Thread

The Thread component renders the conversation between users and it is composed of different message items that contains
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>
);
}