UNPKG

@atlaskit/profilecard

Version:

A React component to display a card with user information.

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