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".

26 lines 999 B
import React from 'react'; import Avatar from '@atlaskit/avatar'; import Heading from '@atlaskit/heading'; // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss import { Stack, Text } from '@atlaskit/primitives/compiled'; 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;