diff --git a/components/Nav.jsx b/components/Nav.jsx index a3d4790..95ffbf6 100644 --- a/components/Nav.jsx +++ b/components/Nav.jsx @@ -33,10 +33,10 @@ export default function Nav({ localeTexts }) { {localeTexts?.nav?.surroundings ?? ""} - {localeTexts?.nav?.gallery ?? ""} + {localeTexts?.nav?.furnishing ?? ""} ({ ...doc.data(), id: doc.id })) ?? + {}, + }, + }; +} + +export default function Furnishing({ furnishings, localeTexts }) { + const { locale } = useRouter(); + return ( +
+

{localeTexts?.furnishings?.headline}

+ + {furnishings.map((s, i) => { + { + console.log(locale); + } + return ( +
+

{locale === "en" ? s.title.en : s.title.de}

+
+ {locale +
+ {s.links.map((l, i2) => { + return ( + + {locale === "en" ? l.text.en : l.text.de} + + ); + })} +
+
+
+
+ ); + })} +
+ ); +}