2024-10-10 17:47:04 +08:00
|
|
|
import DownloadCount from './base/download-count'
|
2024-10-09 18:36:15 +08:00
|
|
|
|
2024-10-10 17:47:04 +08:00
|
|
|
type Props = {
|
|
|
|
downloadCount: number
|
|
|
|
tags: string[]
|
2024-10-09 18:36:15 +08:00
|
|
|
}
|
2024-10-10 17:47:04 +08:00
|
|
|
|
|
|
|
const CardMoreInfo = ({
|
|
|
|
downloadCount,
|
|
|
|
tags,
|
|
|
|
}: Props) => {
|
|
|
|
return (
|
|
|
|
<div className="flex items-center h-5">
|
|
|
|
<DownloadCount downloadCount={downloadCount} />
|
|
|
|
{tags && tags.length > 0 && (
|
|
|
|
<>
|
|
|
|
<div className="mx-2 text-text-quaternary system-xs-regular">·</div>
|
|
|
|
<div className="flex space-x-2">
|
|
|
|
{tags.map(tag => (
|
|
|
|
<div key={tag} className="flex space-x-1 system-xs-regular">
|
|
|
|
<span className="text-text-quaternary">#</span>
|
|
|
|
<span className="text-text-tertiary">{tag}</span>
|
|
|
|
</div>
|
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
</>
|
|
|
|
)}
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default CardMoreInfo
|