) => {
+ const selectedModel = event.target.value;
+ setModel(selectedModel);
+
+ if (selectedModel === 'spec') {
+ router.push('/');
+ }
+ };
+
+ return (
+
+ );
+};
+
+export default GlpPage;
\ No newline at end of file
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 6f3f03b..0542883 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -1,6 +1,7 @@
import type { Metadata } from "next";
import Image from "next/image";
import localFont from "next/font/local";
+import { LanguageProvider } from './context/LanguageContext'; // Importiere den Provider
import "./globals.css";
const geistSans = localFont({
@@ -19,16 +20,21 @@ export const metadata: Metadata = {
description: "OR-Tool by Spaceholder Programming",
};
+
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
+
+
+ {children} {}
+
{children}