import React from 'react';
import { Avatar as AvatarPrimitive, AvatarProps as AvatarPropsPrimitive } from '@modulz/primitives';

export type AvatarProps = AvatarPropsPrimitive

type ExtractRefType<TypesThatMayContainReactRef> = TypesThatMayContainReactRef extends {ref?: React.Ref<infer T>} ? T : any;
type PrimitiveRefType = ExtractRefType<AvatarPropsPrimitive>  

export const Avatar = React.forwardRef<PrimitiveRefType, AvatarProps>((props, ref) => {
  return (
    <AvatarPrimitive {...props} ref={ref}  styleConfig={{"base":{"avatar":{"normal":{"fontSize":"12px","borderBottomLeftRadius":"50%","height":"32px","backgroundColor":"rgba(245, 247, 249, 1)","borderTopLeftRadius":"50%","borderBottomRightRadius":"50%","borderTopRightRadius":"50%","width":"32px"}}},"variants":{}}}/>
  );
});


