{{#twitch-friends-list/twitch-friend-info user=user uiContext='search'}}
  <span class="js-friend-request-status">
    {{#if user.isFriend}}
      {{!-- show nothing --}}
    {{else if didRequest}}
      {{#tipsy-wrapper gravity="n"}}<a href="#" class="js-add-friend warp__action warp__action--primary tooltip" title="{{i18n 'Cancel Request'}}" {{action 'rejectFriend' user}} >{{partial 'svg/close'}}</a>{{/tipsy-wrapper}}
    {{else if user.isRequested}}
      {{#tipsy-wrapper gravity="n"}}<a href="#" class="js-add-friend warp__action warp__action--primary tooltip" title="{{i18n 'Cancel Request'}}" {{action 'rejectFriend' user}} >{{partial 'svg/close'}}</a>{{/tipsy-wrapper}}
    {{else if isError}}
      {{i18n "Something went wrong"}}&hellip;
    {{else}}
      {{#tipsy-wrapper gravity="n"}}<a href="#" class="js-add-friend warp__action warp__action--primary tooltip" title="{{i18n 'Add Friend'}}" {{action 'addFriend' user}} >{{partial 'svg/add-friend'}}</a>{{/tipsy-wrapper}}
    {{/if}}
  </span>
{{/twitch-friends-list/twitch-friend-info}}
