UNPKG

@atlaskit/focused-task-close-account

Version:

This package contains all of the UI components needed to assemble the focused tasks for deactivating and deleting users' accounts in accordance with the GDPR "Right to be forgotten".

25 lines 852 B
import React from 'react'; import Avatar from '@atlaskit/avatar'; import Heading from '@atlaskit/heading'; import { Stack, Text } from '@atlaskit/primitives'; import * as Styled from './styles'; export class UserInfo extends React.Component { render() { const { user } = this.props; return /*#__PURE__*/React.createElement(Styled.UserInfoOuter, null, /*#__PURE__*/React.createElement(Styled.Avatar, null, /*#__PURE__*/React.createElement(Avatar, { size: "large", src: user.avatarUrl })), /*#__PURE__*/React.createElement(Stack, { space: "space.050" }, /*#__PURE__*/React.createElement(Heading, { size: "small", as: "span" }, user.fullName), /*#__PURE__*/React.createElement(Text, { size: "small", color: "color.text.subtlest" }, user.email))); } } export default UserInfo;