Files
dify/web/app/components/plugins/card/base/download-count.tsx
Stephen Zhou 4cde6e31ca Revert "[autofix.ci] apply automated fixes"
This reverts commit 01a05289e9.
2026-01-26 19:29:21 +08:00

24 lines
595 B
TypeScript

import { RiInstallLine } from '@remixicon/react'
import * as React from 'react'
import { formatNumber } from '@/utils/format'
type Props = {
downloadCount: number
}
const DownloadCountComponent = ({
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>
)
}
// Memoize to prevent unnecessary re-renders
const DownloadCount = React.memo(DownloadCountComponent)
export default DownloadCount