fix: add my pages nav sidebar for logged in users
This commit is contained in:
14
components/Loyalty/Sidebar/MyPagesNavigation/index.tsx
Normal file
14
components/Loyalty/Sidebar/MyPagesNavigation/index.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { auth } from "@/auth"
|
||||
import MyPagesSidebar from "@/components/MyPages/Sidebar"
|
||||
|
||||
import { LangParams } from "@/types/params"
|
||||
|
||||
export default async function MyPagesNavigation({ lang }: LangParams) {
|
||||
const session = await auth()
|
||||
|
||||
if (!session) {
|
||||
return null
|
||||
}
|
||||
|
||||
return <MyPagesSidebar lang={lang} />
|
||||
}
|
||||
Reference in New Issue
Block a user