download-count.tsx 452 B

1234567891011121314151617181920
  1. import { RiInstallLine } from '@remixicon/react'
  2. import { formatNumber } from '@/utils/format'
  3. type Props = {
  4. downloadCount: number
  5. }
  6. const DownloadCount = ({
  7. downloadCount,
  8. }: Props) => {
  9. return (
  10. <div className="flex items-center space-x-1 text-text-tertiary">
  11. <RiInstallLine className="shrink-0 w-3 h-3" />
  12. <div className="system-xs-regular">{formatNumber(downloadCount)}</div>
  13. </div>
  14. )
  15. }
  16. export default DownloadCount