import { Link } from '@/frame/components/Link' import type { JourneyContext } from '@/journeys/lib/journey-path-resolver' import { useTranslation } from '@/languages/components/useTranslation' type Props = { context: JourneyContext } export function JourneyTrackNav({ context }: Props) { const { t } = useTranslation('journey_track_nav') const { prevGuide, nextGuide, trackTitle, currentGuideIndex, numberOfGuides } = context return (
{prevGuide && ( <> {t('prev_article')} {prevGuide.title} )} {trackTitle} {t('current_progress') .replace('{n}', `${numberOfGuides}`) .replace('{i}', `${currentGuideIndex + 1}`)} {nextGuide && ( <> {t('next_article')} {nextGuide.title} )}
) }