index.tsx 308 B

123456789101112
  1. import React from 'react'
  2. import VideoPlayer from './VideoPlayer'
  3. type Props = {
  4. srcs: string[]
  5. }
  6. const VideoGallery: React.FC<Props> = ({ srcs }) => {
  7. return (<><br/>{srcs.map((src, index) => (<><br/><VideoPlayer key={`video_${index}`} src={src}/></>))}</>)
  8. }
  9. export default React.memo(VideoGallery)