// @flow import * as React from 'react'; type Props = { className?: string, onError?: Function, url: string, }; const AvatarImage = ({ className = '', url, onError }: Props) => ( { if (typeof onError === 'function') { onError(event); } }} src={url} /> ); export default AvatarImage;