dify/web/app/components/base/audio-gallery/index.tsx
Stephen Zhou a84c2d36a3
style: format with vp fmt (#38803)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-12 15:57:46 +00:00

20 lines
395 B
TypeScript

import * as React from 'react'
import AudioPlayer from './AudioPlayer'
type Props = Readonly<{
srcs: string[]
}>
const AudioGallery: React.FC<Props> = ({ srcs }) => {
const validSrcs = srcs.filter((src) => src)
if (validSrcs.length === 0) return null
return (
<div className="my-3">
<AudioPlayer srcs={validSrcs} />
</div>
)
}
export default React.memo(AudioGallery)