download-count.tsx 452 B

12345678910111213141516171819
  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="h-3 w-3 shrink-0" />
  12. <div className="system-xs-regular">{formatNumber(downloadCount)}</div>
  13. </div>
  14. )
  15. }
  16. export default DownloadCount