28 lines
517 B
Vue
28 lines
517 B
Vue
<script lang="ts" setup>
|
|
import type { SocialLink as SocialLinkType } from '../../shared/index.js'
|
|
import VPSocialLink from '@theme/VPSocialLink.vue'
|
|
|
|
const { links } = defineProps<{
|
|
links: SocialLinkType[]
|
|
}>()
|
|
</script>
|
|
|
|
<template>
|
|
<div class="vp-social-links">
|
|
<VPSocialLink
|
|
v-for="{ link, icon } in links"
|
|
:key="link"
|
|
:icon="icon"
|
|
:link="link"
|
|
/>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.vp-social-links {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
</style>
|