// @flow import * as React from 'react'; import type { CommunityInfoType } from 'shared/graphql/fragments/community/communityInfo'; import AvatarImage from './image'; import { Container, AvatarLink } from './style'; import ConditionalWrap from 'src/components/conditionalWrap'; type Props = { community: CommunityInfoType, size?: number, mobilesize?: number, style?: Object, showHoverProfile?: boolean, isClickable?: boolean, }; class Avatar extends React.Component { render() { const { community, size = 32, isClickable = true, mobilesize, style, } = this.props; const src = community.profilePhoto; const communityFallback = '/img/default_community.svg'; const source = [src, communityFallback]; return ( ( {children} )} > ); } } class AvatarHandler extends React.Component { render() { return ; } } export default AvatarHandler;