<% if (friends.requestsReceived.length) { %>

Friend Requests

<%- include('_friends', { friends: friends.requestsReceived }) %>
<% } %>

Friends

<%- include('_friends', { friends: friends.friends }) %> <% if (friends.friends.length == 0) { %>

You don't have any friends yet 🙁

Use the search or look in communities to find some

<% } %> <% if (friends.requestsSent.length > 0) { %>

Requests Sent

<%- include('_friends', { friends: friends.requestsSent }) %> <% } %>