valueComponent.tsx 410 B

123456789101112131415161718192021
  1. import ActorAvatar from 'sentry/components/avatar/actorAvatar';
  2. import {Actor} from 'sentry/types';
  3. type Value = {
  4. actor: Actor;
  5. };
  6. type Props = {
  7. onRemove: (value: Value) => void;
  8. value: Value;
  9. };
  10. function ValueComponent({value, onRemove}: Props) {
  11. return (
  12. <a onClick={() => onRemove(value)}>
  13. <ActorAvatar actor={value.actor} size={28} />
  14. </a>
  15. );
  16. }
  17. export default ValueComponent;