Created
July 5, 2022 10:44
-
-
Save koss-lebedev/f7effe48947651d50079b27686ed9052 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Video = { | |
title: string | |
duration: number | |
coverUrl: string | |
} | |
type Props = { | |
items: Array<Video> | |
} | |
const VideoList = ({ items }) => { | |
return ( | |
<ul> | |
{items.map(item => | |
<Thumbnail | |
key={item.title} | |
video={item} | |
/> | |
)} | |
</ul> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I guess this needs
Props
to be referenced to explain what you wanted here.