Primera versión

This commit is contained in:
2026-05-20 13:55:15 +02:00
parent c2ab9a46d4
commit 1b67900d54
11 changed files with 4181 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import App from "./App.jsx";
import AppMovil from "./AppMovil.jsx";
import AdminPanel from "./AdminPanel.jsx";
// Enrutador mínimo sin dependencias extra
const ruta = window.location.pathname.replace(/\/$/, "");
function Root() {
if (ruta === "/admin") return <AdminPanel />;
if (ruta === "/movil") return <AppMovil />;
return <App />;
}
createRoot(document.getElementById("root")).render(
<StrictMode><Root /></StrictMode>
);