import React from 'react'; import { defineMessages, FormattedMessage as Message } from 'react-intl'; import icons from 'app/components/ui/icons.scss'; import { PanelBodyHeader } from 'app/components/ui/Panel'; import BaseAuthBody from 'app/components/auth/BaseAuthBody'; import styles from './permissions.scss'; const scopesMessages = defineMessages({ scope_minecraft_server_session: 'Authorization data for minecraft server', scope_offline_access: 'Access to your profile data, when you offline', scope_account_info: 'Access to your profile data (except E‑mail)', scope_account_email: 'Access to your E‑mail address', }); export default class PermissionsBody extends BaseAuthBody { static displayName = 'PermissionsBody'; static panelId = 'permissions'; render() { const { user } = this.context; const { scopes } = this.context.auth; return (
{this.renderErrors()}
{user.avatar ? : }
{user.username}

); } }