refactor: extract account avatar

This commit is contained in:
三咲智子 2022-11-25 19:04:35 +08:00
parent 910c585a55
commit b58d204199
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
3 changed files with 25 additions and 14 deletions

View 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>