(count: number | null)
| 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 |