/** True if `to` is the current sidebar/mobile route (exact or nested under `to/`). */
export function navRouteActive(currentPath: string, to: string): boolean {
  if (to === "/") return currentPath === "/";
  return currentPath === to || currentPath.startsWith(`${to}/`);
}
