'/', 'label' => 'Home'],
['href' => '/browse', 'label' => 'Browse'],
['href' => '/search', 'label' => 'Search'],
['href' => '/timeline', 'label' => 'Timeline'],
['href' => '/network', 'label' => 'Network'],
['href' => '/dashboard', 'label' => 'Dashboard'],
];
function isNavActive(string $href, string $currentPath): bool {
if ($href === '/') {
return $currentPath === '/';
}
return str_starts_with($currentPath, $href);
}
?>