Admin
The Admin component should wrap all the components used in the Admin Interface, which are:
It manages authentication and renders the Admin menu. It acts also as a Provider for the AdminContext, making it available to the wrapped components.
interface AdminProps { isLogin?: boolean isPublicDesignSystem?: boolean designSystemTitle?: string}Properties definition
Section titled “Properties definition”Usage example, editor page
Section titled “Usage example, editor page”import React from 'react'import { Admin, Editor } from 'react-bricks'
const EditorPage = () => { return ( <Admin> <Editor /> </Admin> )}
export default EditorPageUsage example, login page
Section titled “Usage example, login page”import React from 'react'import { Admin, Login } from 'react-bricks'
const LoginPage = () => { return ( <Admin isLogin> <Login /> </Admin> )}
export default LoginPage