14 lines
360 B
TypeScript
14 lines
360 B
TypeScript
import { getName } from "@/lib/trpc/memoizedRequests"
|
|
|
|
import MyPagesSidebar from "@/components/MyPages/Sidebar"
|
|
|
|
export default async function MyPagesNavigation() {
|
|
const username = await getName()
|
|
|
|
// Check if we have user, that means we are logged in andt the My Pages menu can show.
|
|
if (!username) {
|
|
return null
|
|
}
|
|
return <MyPagesSidebar />
|
|
}
|