({
contributorsByRepo = {},
}: {
contributorsByRepo: Record<string, { avatars: string[]; total: number }>;
})
| 50 | } |
| 51 | |
| 52 | const InnerGrid = ({ |
| 53 | contributorsByRepo = {}, |
| 54 | }: { |
| 55 | contributorsByRepo: Record<string, { avatars: string[]; total: number }>; |
| 56 | }) => ( |
| 57 | <> |
| 58 | <div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4"> |
| 59 | {REPOS.map((repo, key) => ( |
| 60 | <ExampleCard |
| 61 | key={repo.name} |
| 62 | repo={repo} |
| 63 | avatars={contributorsByRepo[repo.name]?.avatars ?? []} |
| 64 | hideOnSmall={key > 3} |
| 65 | hideOnMedium={key > 2} |
| 66 | totalContributors={ |
| 67 | contributorsByRepo[repo.name]?.total ?? |
| 68 | contributorsByRepo[repo.name]?.avatars.length ?? |
| 69 | 0 |
| 70 | } |
| 71 | /> |
| 72 | ))} |
| 73 | </div> |
| 74 | <div className="flex justify-center mt-6"> |
| 75 | <a |
| 76 | href="https://github.com/search?q=path%3AAGENTS.md+NOT+is%3Afork+NOT+is%3Aarchived&type=code" |
| 77 | className="text-base font-medium underline hover:no-underline" |
| 78 | > |
| 79 | View 60k+ examples on GitHub |
| 80 | </a> |
| 81 | </div> |
| 82 | </> |
| 83 | ); |
| 84 | |
| 85 | const ExampleListSection = ({ |
| 86 | contributorsByRepo = {}, |
nothing calls this directly
no outgoing calls
no test coverage detected