User Profile Header
The User Profile Header component renders the user profile header composed of user's cover, profile picture and username.
Usage
import React from 'react';
import {SCContextProvider} from '@selfcommunity/react-core';
import {UserProfileHeader} 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}><UserProfileHeader /></SCContextProvider>
);
}