import * as React from 'react'; import { ActivityItem, IActivityItemProps, Link, mergeStyleSets } from '@fluentui/react'; import { TestImages } from '@fluentui/example-data'; const classNames = mergeStyleSets({ exampleRoot: { marginTop: '20px', }, nameText: { fontWeight: 'bold', }, }); export const ActivityItemPersonaExample: React.FunctionComponent = () => { /* eslint-disable react/jsx-no-bind */ const activityItemExamples: (IActivityItemProps & { key: string | number })[] = [ { key: 1, activityDescription: [ { alert('A name was clicked.'); }} > Jack Howden , renamed , DocumentTitle.docx , ], activityPersonas: [{ imageUrl: TestImages.personaMale }], comments: 'Hello, this is the text of my basic comment!', timeStamp: '23m ago', }, { key: 2, activityDescription: [ { alert('A name was clicked.'); }} > Javiera Márquez , and , { alert('A name was clicked.'); }} > Amelia Povalіy , edited , { alert('A document was clicked.'); }} > SpreadsheetTitle.xlsx , ], activityPersonas: [{ imageInitials: 'JM', text: 'Javiera Márquez' }, { imageUrl: TestImages.personaFemale }], timeStamp: '9:27 am', }, { key: 3, activityDescription: [ { alert('A name was clicked.'); }} > Robert Larsson , and , { alert('A name was clicked.'); }} > 2 others , commented , ], activityPersonas: [ { imageInitials: 'RL', text: 'Robert Larsson' }, { imageUrl: TestImages.personaMale }, { imageUrl: TestImages.personaFemale }, ], timeStamp: '3 days ago', }, { key: 4, activityDescription: [ { alert('A name was clicked.'); }} > Jin Cheng , and , { alert('A name was clicked.'); }} > 5 others , edited this file, ], activityPersonas: [ { imageInitials: 'JC', text: 'Jin Cheng' }, { imageUrl: TestImages.personaMale }, { imageInitials: 'AL', text: 'Annie Lindqvist' }, { imageUrl: TestImages.personaFemale }, { imageUrl: TestImages.personaMale }, { imageUrl: TestImages.personaMale }, ], timeStamp: 'August 3, 2017', }, ]; return (
{activityItemExamples.map((item: { key: string | number }) => ( ))}
); };