mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-29 09:37:57 +08:00

Co-authored-by: NFish <douxc512@gmail.com> Co-authored-by: zxhlyh <jasonapring2015@outlook.com> Co-authored-by: twwu <twwu@dify.ai> Co-authored-by: jZonG <jzongcode@gmail.com>
20 lines
452 B
TypeScript
20 lines
452 B
TypeScript
import { RiInstallLine } from '@remixicon/react'
|
|
import { formatNumber } from '@/utils/format'
|
|
|
|
type Props = {
|
|
downloadCount: number
|
|
}
|
|
|
|
const DownloadCount = ({
|
|
downloadCount,
|
|
}: Props) => {
|
|
return (
|
|
<div className="flex items-center space-x-1 text-text-tertiary">
|
|
<RiInstallLine className="h-3 w-3 shrink-0" />
|
|
<div className="system-xs-regular">{formatNumber(downloadCount)}</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default DownloadCount
|