mirror of
https://github.com/langgenius/dify.git
synced 2026-04-15 01:38:19 +08:00
Co-authored-by: AkaraChen <akarachen@outlook.com> Co-authored-by: Yi <yxiaoisme@gmail.com> Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: JzoNg <jzongcode@gmail.com> Co-authored-by: twwu <twwu@dify.ai> Co-authored-by: kurokobo <kuro664@gmail.com> Co-authored-by: Hiroshi Fujita <fujita-h@users.noreply.github.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="shrink-0 w-3 h-3" />
|
|
<div className="system-xs-regular">{formatNumber(downloadCount)}</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default DownloadCount
|