MCPcopy Create free account
hub / github.com/VGabriel45/SolidityVisualizer / formatStarCount

Function formatStarCount

src/components/header.tsx:20–26  ·  view source on GitHub ↗
(count: number | null)

Source from the content-addressed store, hash-verified

18 }, []);
19
20 const formatStarCount = (count: number | null) => {
21 if (!count) return "0"; // Default to 2.0k if count is null (it can only go up from here)
22 if (count >= 1000) {
23 return `${(count / 1000).toFixed(1)}k`;
24 }
25 return count.toString();
26 };
27
28 const handlePrivateReposSubmit = (pat: string) => {
29 // Store the PAT in localStorage

Callers 1

HeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected