/** * The `username` helper displays a user's username in a * tag. If the user doesn't exist, the username will be displayed as [deleted]. * * @param {User} user * @return {Object} */ export default function username(user) { const name = (user && user.username()) || '[deleted]'; return {name}; }