選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

index.tsx 298B

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