{navigationLinks.map(({ path, label, icon }) => (
@@ -171,7 +214,8 @@ const Layout = ({ children }: LayoutProps) => {
to={path}
icon={icon}
label={label}
- onClick={() => toggleMenu(false)}
+ // Alternativ: Hier könnte ein Klick auch das Menü schließen
+ onClick={() => setIsMenuOpen(false)}
className="flex items-center w-full mb-1"
/>
))}
@@ -179,19 +223,26 @@ const Layout = ({ children }: LayoutProps) => {
- Sprache ändern
+
+ Sprache ändern
+
-
- >
- )}
-
-
- {children}
+