import { renderAvatar } from "discourse/helpers/user-avatar"; import { userPath } from "discourse/lib/url"; import { htmlHelper } from "discourse-common/lib/helpers"; import { htmlSafe } from "@ember/template"; import { formatUsername } from "discourse/lib/utilities"; export default htmlHelper(invitee => { const path = userPath(invitee.user.username); const template = ` ${renderAvatar(invitee.user, { imageSize: "medium" })} ${formatUsername(invitee.user.username)} `; return htmlSafe(template); });