<template>
    <ENFJ v-if="code=='ENFJ'" :scores="scores"/>
    <ENFP v-else-if="code=='ENFP'" :scores="scores"/>
    <ENTJ v-else-if="code=='ENTJ'" :scores="scores"/>
    <ENTP v-else-if="code=='ENTP'" :scores="scores"/>
    <ESFJ v-else-if="code=='ESFJ'" :scores="scores"/>
    <ESFP v-else-if="code=='ESFP'" :scores="scores"/>
    <ESTJ v-else-if="code=='ESTJ'" :scores="scores"/>
    <ESTP v-else-if="code=='ESTP'" :scores="scores"/>
    <INFJ v-else-if="code=='INFJ'" :scores="scores"/>
    <INFP v-else-if="code=='INFP'" :scores="scores"/>
    <INTJ v-else-if="code=='INTJ'" :scores="scores"/>
    <INTP v-else-if="code=='INTP'" :scores="scores"/>
    <ISFJ v-else-if="code=='ISFJ'" :scores="scores"/>
    <ISFP v-else-if="code=='ISFP'" :scores="scores"/>
    <ISTJ v-else-if="code=='ISTJ'" :scores="scores"/>
    <ISTP v-else-if="code=='ISTP'" :scores="scores"/>
    <uv-back-top :scroll-top="scrollTop"/>
</template>

<script setup>
import ENFJ from "@/pagesOther/pages/test-center/mbti/components/results/ENFJ.vue";
import ENFP from "@/pagesOther/pages/test-center/mbti/components/results/ENFP.vue";
import ENTJ from "@/pagesOther/pages/test-center/mbti/components/results/ENTJ.vue";
import ENTP from "@/pagesOther/pages/test-center/mbti/components/results/ENTP.vue";
import ESFJ from "@/pagesOther/pages/test-center/mbti/components/results/ESFJ.vue";
import ESFP from "@/pagesOther/pages/test-center/mbti/components/results/ESFP.vue";
import ESTJ from "@/pagesOther/pages/test-center/mbti/components/results/ESTJ.vue";
import ESTP from "@/pagesOther/pages/test-center/mbti/components/results/ESTP.vue";
import INFJ from "@/pagesOther/pages/test-center/mbti/components/results/INFJ.vue";
import INFP from "@/pagesOther/pages/test-center/mbti/components/results/INFP.vue";
import INTJ from "@/pagesOther/pages/test-center/mbti/components/results/INTJ.vue";
import INTP from "@/pagesOther/pages/test-center/mbti/components/results/INTP.vue";
import ISFJ from "@/pagesOther/pages/test-center/mbti/components/results/ISFJ.vue";
import ISFP from "@/pagesOther/pages/test-center/mbti/components/results/ISFP.vue";
import ISTJ from "@/pagesOther/pages/test-center/mbti/components/results/ISTJ.vue";
import ISTP from "@/pagesOther/pages/test-center/mbti/components/results/ISTP.vue";
import {useScroll} from "@/hooks/useScroll";

defineProps({
    code: String,
    scores: Array
})

const {scrollTop} = useScroll()

</script>

<style scoped>

</style>