Files
web/components/Content/Sidebar/MyPagesNavigation/index.tsx
2024-09-05 16:33:14 +02:00

14 lines
356 B
TypeScript

import { serverClient } from "@/lib/trpc/server"
import MyPagesSidebar from "@/components/MyPages/Sidebar"
export async function MyPagesNavigation() {
const user = await serverClient().user.name()
// Check if we have user, that means we are logged in andt the My Pages menu can show.
if (!user) {
return null
}
return <MyPagesSidebar />
}