30 lines
692 B
Vue
30 lines
692 B
Vue
<template>
|
|
<QuestionSummary :title="props.title" :text="props.text">
|
|
<h5 class="mb-8 text-base">
|
|
{{ uniqueAnswers.length }} {{ $t("feedback.answers") }}
|
|
</h5>
|
|
<ol>
|
|
<li v-for="answer of uniqueAnswers" :key="answer" class="mb-2 last:mb-0">
|
|
<p>{{ answer }}</p>
|
|
</li>
|
|
</ol>
|
|
</QuestionSummary>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import QuestionSummary from "@/components/ui/QuestionSummary.vue";
|
|
import { computed } from "vue";
|
|
|
|
const props = defineProps<{
|
|
answers: string[];
|
|
title: string;
|
|
text: string;
|
|
}>();
|
|
|
|
const uniqueAnswers = computed(() => {
|
|
return [...new Set(props.answers)];
|
|
});
|
|
</script>
|
|
|
|
<style lang="postcss" scoped></style>
|