Format result count

This commit is contained in:
Kamran Ahmed committed 2024-03-20 16:22:49 +00:00
1 parent 7cffcccfe8
commit d880f84e0a
1 file changed
+5 -2
@@ -57,8 +57,11 @@ export function ExploreAISearch(props: ExploreAISearchProps) {
)}
</div>
{total > 0 && (
<p className="flex-shrink-0 text-sm text-gray-500">
{total} results found
<p className="flex-shrink-0 text-sm text-gray-500 hidden sm:block">
{Intl.NumberFormat('en-US', {
notation: 'compact',
}).format(total)}{' '}
results found
</p>
)}
</div>