|
|
@ -7,6 +7,7 @@ const props = defineProps<{
|
|
|
|
icon: DefaultTheme.SocialLinkIcon
|
|
|
|
icon: DefaultTheme.SocialLinkIcon
|
|
|
|
link: string
|
|
|
|
link: string
|
|
|
|
ariaLabel?: string
|
|
|
|
ariaLabel?: string
|
|
|
|
|
|
|
|
me: boolean
|
|
|
|
}>()
|
|
|
|
}>()
|
|
|
|
|
|
|
|
|
|
|
|
const el = ref<HTMLAnchorElement>()
|
|
|
|
const el = ref<HTMLAnchorElement>()
|
|
|
@ -45,7 +46,7 @@ if (import.meta.env.SSR) {
|
|
|
|
:href="link"
|
|
|
|
:href="link"
|
|
|
|
:aria-label="ariaLabel ?? (typeof icon === 'string' ? icon : '')"
|
|
|
|
:aria-label="ariaLabel ?? (typeof icon === 'string' ? icon : '')"
|
|
|
|
target="_blank"
|
|
|
|
target="_blank"
|
|
|
|
rel="me noopener"
|
|
|
|
:rel="me ? 'me noopener' : 'noopener'"
|
|
|
|
v-html="svg"
|
|
|
|
v-html="svg"
|
|
|
|
></a>
|
|
|
|
></a>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|