<script lang="ts">
import type { SlotsType, UnwrapRef } from 'vue'
import type { UseAvatarContext } from './use-avatar-context.ts'

export interface AvatarContextProps extends SlotsType<{
  default: UnwrapRef<UseAvatarContext>
}> {}
</script>

<script setup lang="ts">
import { useAvatarContext } from './use-avatar-context.ts'

const avatar = useAvatarContext()

defineSlots<{
  default(avatar: UnwrapRef<UseAvatarContext>): unknown
}>()
</script>

<template>
  <slot v-bind="avatar"></slot>
</template>
