Skip to main content

Platform Widget

The Platform Widget renders a card composed of three buttons that allows admin and moderator users to manage the application content.

Usage

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