import { useTranslation } from '@/languages/components/useTranslation' import { ArrowRightIcon } from '@primer/octicons-react' import { LearningTrack as LearningTrackT } from '@/landings/components/ProductGuidesContext' import { Link } from '@/frame/components/Link' import { HeadingLink } from '@/frame/components/article/HeadingLink' type Props = { track: LearningTrackT } export const LearningTrack = ({ track }: Props) => { const { t, tObject } = useTranslation('product_guides') if (!track) return
return (
{track.title}

{track.description}

{t('start_path')} {track.guides && (
    {track.guides.map((guide) => (
  1. {tObject('guide_types')[guide.page?.type || ''] as string} {guide.title}
  2. ))}
)}
) }