2022-10-15 18:20:33 +03:00
|
|
|
<template>
|
|
|
|
<div class="icon-list">
|
|
|
|
<ul>
|
|
|
|
<li v-for="item in list">
|
2022-10-16 14:04:03 +03:00
|
|
|
<NuxtLink
|
|
|
|
:to="item.href"
|
|
|
|
v-bind:target="item.blank ? '_blank' : undefined"
|
|
|
|
><span :class="item.icon"></span>{{ item.name }}</NuxtLink
|
2022-10-15 18:20:33 +03:00
|
|
|
>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
interface LinkList {
|
|
|
|
href: string;
|
|
|
|
name: string;
|
|
|
|
icon: string;
|
|
|
|
blank?: boolean;
|
|
|
|
}
|
|
|
|
|
2025-01-25 20:13:38 +02:00
|
|
|
defineProps<{ list: LinkList[] }>();
|
2022-10-15 18:20:33 +03:00
|
|
|
</script>
|