// @flow import * as React from 'react'; import noop from 'lodash/noop'; import classNames from 'classnames'; import X from '../../icon/fill/X16'; // $FlowFixMe this imports from a typescript file import LabelPill from '../label-pill'; import Avatar from '../avatar'; import './RoundPill.scss'; type Props = { className?: string, /** Function to retrieve the image URL associated with a pill */ getPillImageUrl?: (data: { id: string | number, [key: string]: any }) => string | Promise, hasWarning?: boolean, id?: string | number, isDisabled?: boolean, isExternal?: boolean, isSelected?: boolean, isValid?: boolean, onRemove: () => any, showAvatar?: boolean, text: string, type?: string | null, }; type State = { avatarUrl: ?string, }; const RemoveButton = ({ onClick, ...rest }: { onClick: () => any }) => (