feat(SW-184): added menu buttons and my pages menu
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import Link from "next/link"
|
||||
|
||||
import { serverClient } from "@/lib/trpc/server"
|
||||
|
||||
import Image from "@/components/Image"
|
||||
|
||||
import Menu from "./Menu"
|
||||
import User from "./User"
|
||||
import MyPages from "./MyPages"
|
||||
|
||||
import styles from "./mainMenu.module.css"
|
||||
|
||||
@@ -29,6 +31,11 @@ export interface MenuItem {
|
||||
}
|
||||
|
||||
export default async function MainMenu() {
|
||||
const myPagesNavigation =
|
||||
await serverClient().contentstack.myPages.navigation.get()
|
||||
|
||||
const user = await serverClient().user.name()
|
||||
|
||||
const menuItems: MenuItem[] = [
|
||||
{
|
||||
id: "hotels",
|
||||
@@ -118,7 +125,7 @@ export default async function MainMenu() {
|
||||
/>
|
||||
</Link>
|
||||
<Menu items={menuItems} />
|
||||
<User />
|
||||
<MyPages myPagesNavigation={myPagesNavigation} user={user} />
|
||||
</nav>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user