UNPKG

@atlaskit/profilecard

Version:

A React component to display a card with user information.

21 lines 799 B
import React, { useEffect } from 'react'; import Spinner from '@atlaskit/spinner'; import { CardContent, CardHeader, CardWrapper, LoadingWrapper } from '../../styled/TeamCard'; import { profileCardRendered } from '../../util/analytics'; export default (props => { const { analytics } = props; useEffect(() => { analytics(duration => profileCardRendered('team', 'spinner', { duration })); }, [analytics]); return /*#__PURE__*/React.createElement(CardWrapper, { testId: "team-profilecard" }, /*#__PURE__*/React.createElement(CardHeader, { isLoading: true }), /*#__PURE__*/React.createElement(CardContent, null, /*#__PURE__*/React.createElement(LoadingWrapper, { testId: "team-profilecard-spinner" }, /*#__PURE__*/React.createElement(Spinner, null)))); });