<template>
  <UAvatar v-if="avatar" :src="src" :alt="alt" />
  <img v-else :alt="alt" :src="src" />
</template>

<script setup lang="ts">
interface Props {
  avatar?: boolean;
  src?: string;
  alt?: string;
}
const { avatar = false, src = '/img/gege.png', alt = 'GéJDR' } = defineProps<Props>();
</script>
