blob: 3f27e2481a351cab74485e2cbcce3d5999c839ad (
plain)
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
29
|
import React from 'react';
import {InstagramPostType, UserType} from '../../types';
import {TaggPost} from './';
interface TaggsFeedProps {
user: UserType;
socialHandle: string;
posts: Array<InstagramPostType>;
}
const TaggsFeed: React.FC<TaggsFeedProps> = ({user, socialHandle, posts}) => {
return (
<>
{posts?.map((post, index) => (
<TaggPost
key={index}
post={{
owner: user,
social: 'Instagram',
socialHandle: socialHandle,
data: post,
}}
/>
))}
</>
);
};
export default TaggsFeed;
|