import type { LearningTrack } from 'components/context/ArticleContext' import { useTranslation } from 'components/hooks/useTranslation' type Props = { track: LearningTrack } export function LearningTrackNav({ track }: Props) { const { t } = useTranslation('learning_track_nav') const { prevGuide, nextGuide, trackName } = track return (
{prevGuide && ( <> {t('prevGuide')} {prevGuide.title} )} {nextGuide && ( <> {t('nextGuide')} {nextGuide.title} )}
) }