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

Function ProductGuides

components/guides/ProductGuides.tsx:10–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8import { useTranslation } from 'components/hooks/useTranslation'
9
10export const ProductGuides = () => {
11 const { title, learningTracks, includeGuides } = useProductGuidesContext()
12 const { t } = useTranslation('product_guides')
13
14 return (
15 <DefaultLayout>
16 <LandingSection className="pt-3">
17 <GuidesHero />
18 </LandingSection>
19
20 <div data-search="article-body">
21 {learningTracks && learningTracks.length > 0 && (
22 <LandingSection
23 title={`${title} learning paths`}
24 className="border-top py-6"
25 sectionLink="learning-paths"
26 description={t('learning_paths_desc')}
27 >
28 <LearningTracks />
29 </LandingSection>
30 )}
31
32 {includeGuides && (
33 <LandingSection
34 title={`All ${title} guides`}
35 className="border-top py-6 color-border-default"
36 sectionLink="all-guides"
37 >
38 <ArticleCards />
39 </LandingSection>
40 )}
41 </div>
42 </DefaultLayout>
43 )
44}

Callers

nothing calls this directly

Calls 2

useProductGuidesContextFunction · 0.90
useTranslationFunction · 0.90

Tested by

no test coverage detected