agent-ecosystem/src/renderer/components/extensions/common/InstallCountBadge.tsx
iliya 51f8f3545c style: auto-fix import/export sorting and formatting
Ran pnpm lint:fix to resolve 220 auto-fixable lint issues.
All changes are import/export reordering — no logic changes.
2026-03-16 20:48:42 +02:00

21 lines
553 B
TypeScript

/**
* InstallCountBadge — formatted download count with icon.
*/
import { formatInstallCount } from '@shared/utils/extensionNormalizers';
import { Download } from 'lucide-react';
interface InstallCountBadgeProps {
count: number;
}
export const InstallCountBadge = ({ count }: InstallCountBadgeProps): React.JSX.Element | null => {
if (count <= 0) return null;
return (
<span className="inline-flex items-center gap-1 text-xs text-text-muted">
<Download className="size-3" />
{formatInstallCount(count)}
</span>
);
};