MCPcopy Create free account
hub / github.com/github/docs / SponsorsExamples

Function SponsorsExamples

components/landing/SponsorsExamples.tsx:8–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6import { UserCard } from 'components/landing/UserCard'
7
8export const SponsorsExamples = () => {
9 const { productUserExamples } = useProductLandingContext()
10 const { t } = useTranslation('product_landing')
11
12 if (!productUserExamples) {
13 return null
14 }
15
16 return (
17 <div>
18 <div className="d-flex flex-wrap gutter">
19 {productUserExamples.slice(0, 6).map((user) => {
20 return (
21 <div key={user.username} className="col-12 col-xl-4 col-lg-6 mb-4">
22 <UserCard href={`https://github.com/sponsors/${user.username}`} user={user} />
23 </div>
24 )
25 })}
26 </div>
27 <Link href={`https://github.com/sponsors/community`} className="btn btn-outline float-right">
28 {t('explore_people_and_projects')} <ArrowRightIcon />
29 </Link>
30 </div>
31 )
32}

Callers

nothing calls this directly

Calls 2

useProductLandingContextFunction · 0.90
useTranslationFunction · 0.90

Tested by

no test coverage detected