-
Notifications
You must be signed in to change notification settings - Fork 375
Expand file tree
/
Copy pathVideo.js
More file actions
27 lines (23 loc) · 734 Bytes
/
Video.js
File metadata and controls
27 lines (23 loc) · 734 Bytes
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
import './Video.css';
function Video({ title, id, channel = "Coder Dost", views, time, verified, children, editableVideo }) {
console.log('render Video')
return (
<>
<div className='container'>
<button className='edit' onClick={() => editableVideo(id)}>Edit</button>
<div className="pic">
<img src={`https://picsum.photos/id/${id}/160/90`} alt="Katherine Johnson" />
</div>
<div className="title">{title}</div>
<div className="channel">{channel} {verified && '✅'} </div>
<div className="views">
{views} views <span>.</span> {time}
</div>
<div>
{children}
</div>
</div>
</>
);
}
export default Video;