| 4265 |
stevensc |
1 |
/* eslint-disable react/prop-types */
|
|
|
2 |
import React from 'react'
|
|
|
3 |
import ThumbUpAltOutlinedIcon from '@mui/icons-material/ThumbUpAltOutlined'
|
|
|
4 |
import ChatOutlinedIcon from '@mui/icons-material/ChatOutlined'
|
|
|
5 |
import ShareOutlinedIcon from '@mui/icons-material/ShareOutlined'
|
|
|
6 |
import SendOutlinedIcon from '@mui/icons-material/SendOutlined'
|
|
|
7 |
import InputOption from './InputOption'
|
|
|
8 |
import Avatar from '../../../../shared/Avatar/Avatar'
|
|
|
9 |
|
|
|
10 |
const Feed = ({ name, description, message, photoUrl }) => {
|
|
|
11 |
return (
|
|
|
12 |
<div className='feed'>
|
|
|
13 |
|
|
|
14 |
<div className='feed__header'>
|
|
|
15 |
<Avatar
|
|
|
16 |
imageUrl={photoUrl}
|
|
|
17 |
name={name}
|
|
|
18 |
size='xl'
|
|
|
19 |
/>
|
|
|
20 |
<div className='feed__info'>
|
|
|
21 |
<h2>{name}</h2>
|
|
|
22 |
<p>{description}</p>
|
|
|
23 |
</div>
|
|
|
24 |
</div>
|
|
|
25 |
|
|
|
26 |
<div className='feed__body'>
|
|
|
27 |
<p>{message}</p>
|
|
|
28 |
</div>
|
|
|
29 |
|
|
|
30 |
<div className='feed__buttons'>
|
|
|
31 |
<InputOption Icon={ThumbUpAltOutlinedIcon} title='Like' />
|
|
|
32 |
<InputOption Icon={ChatOutlinedIcon} title='Comment' />
|
|
|
33 |
<InputOption Icon={ShareOutlinedIcon} title='Share' />
|
|
|
34 |
<InputOption Icon={SendOutlinedIcon} title='Send' />
|
|
|
35 |
</div>
|
|
|
36 |
|
|
|
37 |
</div>
|
|
|
38 |
)
|
|
|
39 |
}
|
|
|
40 |
|
|
|
41 |
export default Feed
|