All files / apps/huella-legal/layers/publish/app/components PublishReasons.vue

100% Statements 4/4
100% Branches 0/0
100% Functions 1/1
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26  1x 3x                                 1x            
<template>
    <ul class="flex flex-col divide-y divide-muted border-t border-default">
        <UPageFeature
            v-for="reason in REASONS"
            :key="reason.key"
            as="li"
            :icon="reason.icon"
            :title="$t(`publish.reasons.${reason.key}.title`)"
            :description="$t(`publish.reasons.${reason.key}.body`)"
            :ui="{
                root: 'gap-4 py-5',
                leading: 'size-11 shrink-0 rounded-full bg-secondary-100 p-0',
                leadingIcon: 'text-secondary-700',
            }"
        />
    </ul>
</template>
 
<script setup lang="ts">
const REASONS = [
    { key: "visibility", icon: "i-lucide-eye" },
    { key: "review", icon: "i-lucide-scale" },
    { key: "free", icon: "i-lucide-badge-check" },
] as const;
</script>