<template>
  <div class="icon-list">
    <ul>
      <li v-for="item in list">
        <NuxtLink
          :to="item.href"
          v-bind:target="item.blank ? '_blank' : undefined"
          ><span :class="item.icon"></span>{{ item.name }}</NuxtLink
        >
      </li>
    </ul>
  </div>
</template>

<script setup lang="ts">
interface LinkList {
  href: string;
  name: string;
  icon: string;
  blank?: boolean;
}

defineProps<{ list: LinkList[] }>();
</script>
