<template>

    <div class="flex text-sm">
        <div class="flex items-center justify-center">
            <div class="w-10 h-10 flex items-center justify-center overflow-hidden">
                <img :src="image" alt="" class="h-full w-full" />
            </div>
        </div>

        <div class="flex-1 ml-2">
            <p class="font-bold text-base">{{ t("dark.title") }}</p>
            <p v-if="!light_unlocked">{{ t("dark.description") }}</p>
            <p v-if="light_unlocked">{{ t("dark_either.description") }}</p>
        </div>
    </div>
    
</template>

<script setup lang="ts">
    import { ref } from "vue";
    import { useI18n } from "vue-i18n";
    import image from "@/assets/images/moon.png";
    import { getFoundEasterEggs } from "@/utilities/easteregg_handler";
    import locale from "@/locales/easteregg";

    const { t } = useI18n({ messages: locale });

    const light_unlocked = ref(getFoundEasterEggs().includes("picture-bright"));
</script>