11 lines
324 B
TypeScript
11 lines
324 B
TypeScript
export function ArticlesSummary({ visibleCount, total }: { visibleCount: number; total: number }): React.ReactElement | null {
|
|
if (visibleCount === 0) {
|
|
return null
|
|
}
|
|
return (
|
|
<div className="mb-4 text-sm text-gray-600">
|
|
Showing {visibleCount} of {total} article{total !== 1 ? 's' : ''}
|
|
</div>
|
|
)
|
|
}
|