vbv/client/src/pages/learningPath/learningPathPage/LearningPathContinueButton.vue

25 lines
548 B
Vue

<script setup lang="ts">
import type { LearningContentWithCompletion } from "@/types";
const props = defineProps<{
nextLearningContent: LearningContentWithCompletion | undefined;
}>();
</script>
<template>
<router-link
class="btn-blue mt-2 pl-6"
:to="nextLearningContent?.continueUrl ?? '/hello'"
data-cy="lp-continue-button"
translate
>
<span>
{{
props.nextLearningContent?.firstInCircle
? $t("general.start")
: $t("general.nextStep")
}}
</span>
</router-link>
</template>