renderAttachmentStub()

in src/app/content-attachment-activity.js [26:35]


  renderAttachmentStub(activity, attachment, removed) {
    const uniqueKey = `${activity.id}${attachment.id}`;
    const stubClass = 'aw__activity__attachment__header__stub';
    const modClass = removed && 'aw__activity__attachment__header__stub_removed';
    return (
      <span className={classNames(stubClass, modClass)} key={uniqueKey}>
        {attachment.name}
      </span>
    );
  }