import * as React from 'react'
import DownloadCount from './base/download-count'
type Props = {
downloadCount?: number
tags: string[]
}
const CardMoreInfoComponent = ({
downloadCount,
tags,
}: Props) => {
return (
{downloadCount !== undefined &&
}
{downloadCount !== undefined && tags && tags.length > 0 &&
ยท
}
{tags && tags.length > 0 && (
<>
{tags.map(tag => (
#
{tag}
))}
>
)}
)
}
// Memoize to prevent unnecessary re-renders when tags array hasn't changed
const CardMoreInfo = React.memo(CardMoreInfoComponent)
export default CardMoreInfo