feat: add my pages mobile dropdown cmoponent, parallel route, and consume + zustand store

This commit is contained in:
Chuma McPhoy
2024-06-19 07:57:26 +02:00
committed by Michael Zetterberg
parent f5d998d056
commit cfb08fff2c
11 changed files with 224 additions and 12 deletions

View File

@@ -0,0 +1,12 @@
import { serverClient } from "@/lib/trpc/server"
import MyPagesMobileDropdown from "@/components/Current/Header/MyPagesMobileDropdown"
export default async function MyPagesMobileDropdownPage() {
// TODO: Dirty way to get lang value. Figure out a proper way.
const data = await serverClient().contentstack.languageSwitcher.get()
if (!data) {
return null
}
return <MyPagesMobileDropdown lang={data.lang} />
}