<template>
  <img :src="getLinkAttr(name)" v-if="getLinkAttr(name)" @click="flyLink(name)" />
</template>

<script setup lang="ts">
import { flyLink, getLinkAttr } from "./store";

defineProps<{ name: string }>();
</script>

<style scoped>
img {
  cursor: pointer;
}
</style>
