refactor: extract account avatar
This commit is contained in:
parent
910c585a55
commit
b58d204199
3 changed files with 25 additions and 14 deletions
17
components/account/AccountAvatarImage.vue
Normal file
17
components/account/AccountAvatarImage.vue
Normal file
|
@ -0,0 +1,17 @@
|
|||
<script setup lang="ts">
|
||||
import type { Account } from 'masto'
|
||||
|
||||
defineProps<{
|
||||
account: Account
|
||||
}>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<img
|
||||
:src="account.avatar"
|
||||
:alt="account.username"
|
||||
loading="lazy"
|
||||
rounded-full bg-gray:10
|
||||
v-bind="$attrs"
|
||||
>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue