import React from 'react' function jumpToSection(targetId) { if (!targetId || typeof window === 'undefined') return const element = document.getElementById(targetId) if (!element) return element.scrollIntoView({ behavior: 'smooth', block: 'start' }) window.history.replaceState(null, '', `#${targetId}`) } export default function DocsSidebarNav({ sections, ariaLabel = 'Sections on this page', selectLabel = 'Jump to section', navTitle = 'On this page' }) { return ( <>