feat: pass in navigation from server components

This commit is contained in:
Chuma McPhoy
2024-06-19 09:00:29 +02:00
committed by Michael Zetterberg
parent da1f142b57
commit e92b6cc27d
4 changed files with 31 additions and 14 deletions

View File

@@ -5,6 +5,9 @@ import MyPagesMobileDropdown from "@/components/Current/Header/MyPagesMobileDrop
export default async function MyPagesMobileDropdownPage() {
// TODO: Figure out how to pass down props at the paralell route level.
// - POssibly by parsing [...paths]
return <MyPagesMobileDropdown lang={null} />
// - Possibly by parsing [...paths]
const navigation = await serverClient().contentstack.myPages.navigation.get()
if (!navigation) return null
return <MyPagesMobileDropdown navigation={navigation} lang={null} />
}