<?php
if ($user) {
    _view("nav_logged_in", [
        "user" => $user,
        "isViewingOwnProfile" => $isViewingOwnProfile ?? false,
    ]);
} else {
    _view("nav_guest");
}