UNPKG

@atlaskit/profilecard

Version:

A React component to display a card with user information.

24 lines 925 B
import React, { useEffect } from 'react'; import Spinner from '@atlaskit/spinner'; import { CardContent, CardHeader, CardWrapper, LoadingWrapper } from '../../styled/TeamTrigger'; import { PACKAGE_META_DATA } from '../../util/analytics'; import { getPageTime } from '../../util/performance'; export default (props => { const { analytics } = props; useEffect(() => { analytics('ui.teamProfileCard.rendered.spinner', duration => ({ duration, firedAt: Math.round(getPageTime()), ...PACKAGE_META_DATA })); }, [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)))); });