File size: 669 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { FunctionComponent } from 'react';
import FormattedBlock from 'calypso/components/notes-formatted-block';
import { Activity } from 'calypso/state/activity-log/types';

interface Props {
	activity: Activity;
}

const ActivityDescription: FunctionComponent< Props > = ( {
	activity: { activityName, activityDescription },
} ) => (
	<>
		{ activityDescription.map( ( description, index ) => {
			const { intent, section, published } = description;

			return (
				<FormattedBlock
					content={ description }
					key={ index }
					meta={ { activity: activityName, intent, section, published } }
				/>
			);
		} ) }
	</>
);

export default ActivityDescription;