UNPKG

@atlaskit/profilecard

Version:

A React component to display a card with user information.

14 lines 517 B
import profiles from './profile-data'; const mappedProfileToReportingLines = profiles.map((profile, index) => ({ accountIdentifier: '123456:12345-67890-' + index, identifierType: 'ATLASSIAN_ID', pii: { name: profile.User.fullName, picture: profile.User.avatarUrl } })); const halfCount = Math.ceil(mappedProfileToReportingLines.length / 2); export const reportingLinesData = { managers: mappedProfileToReportingLines.slice(0, halfCount), reports: mappedProfileToReportingLines.slice(-halfCount) };