import type { JSX } from 'solid-js'
import { type UseAvatarContext, useAvatarContext } from './use-avatar-context.ts'

export interface AvatarContextProps {
  children: (context: UseAvatarContext) => JSX.Element
}

export const AvatarContext = (props: AvatarContextProps) => props.children(useAvatarContext())
