Files
classroomio/packages/ui/src/custom/exercise-question/renderers/thumbs/preview.svelte
T

12 lines
454 B
Svelte
Raw Normal View History

<script lang="ts">
import { getExerciseQuestionLabel, type ExerciseQuestionRendererProps } from '@cio/question-types';
let { labels }: ExerciseQuestionRendererProps = $props();
const label = (key: Parameters<typeof getExerciseQuestionLabel>[1], fallback = '') =>
getExerciseQuestionLabel(labels, key, fallback);
</script>
<div class="ui:space-y-1">
<p class="ui:text-muted-foreground ui:text-sm">{label('thumbs.preview.helper')}</p>
</div>