import * as React from 'react';
import { ActivityItem, Icon, Link, mergeStyleSets } from '@fluentui/react';
const classNames = mergeStyleSets({
exampleRoot: {
marginTop: '20px',
},
nameText: {
fontWeight: 'bold',
},
});
export const ActivityItemBasicExample: React.FunctionComponent = () => {
const activityItemExamples = [
{
key: 1,
activityDescription: [
{
alert('A name was clicked.');
}}
>
Philippe Lampros
,
commented,
],
activityIcon: ,
comments: [
Hello! I am making a comment and mentioning ,
{
alert('An @mentioned name was clicked.');
}}
>
@Anđela Debeljak
,
in the text of the comment.,
],
timeStamp: 'Just now',
},
{
key: 2,
activityDescription: [
{
alert('A name was clicked.');
}}
>
Lisha Refai
,
deleted ,
DocumentTitle.docx
,
],
activityIcon: ,
timeStamp: '2 hours ago',
},
{
key: 3,
activityDescription: [
{
alert('A name was clicked.');
}}
>
Julian Arvidsson
,
moved ,
{
alert('A document was clicked.');
}}
>
PresentationTitle.pptx
,
to ,
{
alert('A folder was clicked.');
}}
>
Destination Folder
,
],
activityIcon: ,
timeStamp: 'Yesterday',
},
];
return (
{activityItemExamples.map((item: { key: string | number }) => (
))}
);
};