// app.jsx — root wiring
function App() {
const [contactOpen, setContactOpen] = React.useState(false);
const open = () => setContactOpen(true);
const close = () => setContactOpen(false);
return (
);
}
function Shell({ onContactClick, contactOpen, onContactClose }) {
const { path } = useRouter();
let content;
if (path === '/' || path === '') {
content = ;
} else if (path === '/services') {
content = ;
} else if (path.startsWith('/services/')) {
const slug = path.replace('/services/', '');
content = ;
} else if (path === '/about') {
content = ;
} else if (path === '/blog') {
content = ;
} else if (path.startsWith('/blog/')) {
const slug = path.replace('/blog/', '');
content = ;
} else if (path === '/contact') {
content = ;
} else {
content = (
404
Page not found.
The page you're looking for doesn't exist or has moved.
Back to home
);
}
return (
<>
{content}
>
);
}
ReactDOM.createRoot(document.getElementById('root')).render();