diff options
Diffstat (limited to 'src/components/taggs/TaggsFeed.tsx')
-rw-r--r-- | src/components/taggs/TaggsFeed.tsx | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/components/taggs/TaggsFeed.tsx b/src/components/taggs/TaggsFeed.tsx new file mode 100644 index 00000000..3f27e248 --- /dev/null +++ b/src/components/taggs/TaggsFeed.tsx @@ -0,0 +1,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; |