import React from 'react'; import { Container, Image } from './Avatar.styled'; export type AvatarProps = { src?: string; children?: string | React.ReactNode; size?: number; hash?: string; deliberatelyEmpty?: boolean; }; /** Chuldren is recommended to not be larger than 2 uppercase letters. */ export const Avatar = (props: AvatarProps) => ( {props.src && props.hash && ( )}
{props.children || ( /* needs specifically   to prevent layout issues. */ <>  )}
);