/* Genesis DMA — root app + router */
const { useEffect: _uapp } = React;
function App() {
const path = useHashRoute();
// Smooth scroll-to-top on route change (instant to avoid jank)
_uapp(() => { window.scrollTo({ top: 0, behavior: 'auto' }); }, [path]);
let page;
if (path === '/' || path === '') page = ;
else if (path === '/about') page = ;
else if (path === '/contact') page = ;
else if (path.startsWith('/capabilities/')) {
const slug = path.replace('/capabilities/', '');
page = SERVICES[slug] ? : ;
} else page = ;
return (
<>
{page}
>
);
}
ReactDOM.createRoot(document.getElementById('root')).render();