Skip to main content

Private Message Snippets

The Private Message Snippets component renders the list of conversations preview between users.
Private Message Snippet items are composed of the user avatar and username, the message content and the receipt date.

Usage

 import React from 'react';
import {SCContextProvider} from '@selfcommunity/react-core';
import {PrivateMessageSnippets} 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}><PrivateMessageSnippets /></SCContextProvider>
);
}