Skip to main content

Snippet Notifications

The Snippet Notifications component renders the notification list.
Snippet notifications items are composed of the user avatar and username and the notification content.

Usage

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