()
| 8 | import { useTranslation } from 'components/hooks/useTranslation' |
| 9 | |
| 10 | export 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 | } |
nothing calls this directly
no test coverage detected