import { Divider } from "@scandic-hotels/design-system/Divider" import { Typography } from "@scandic-hotels/design-system/Typography" import { logout } from "@/constants/routes/handleAuth" import { getProfileSafely } from "@/lib/trpc/memoizedRequests" import { serverClient } from "@/lib/trpc/server" import { SASLevelUpgradeCheck } from "@/components/MyPages/SASLevelUpgradeCheck" import Link from "@/components/TempDesignSystem/Link" import { getIntl } from "@/i18n" import { getLang } from "@/i18n/serverContext" import { getEurobonusMembership } from "@/utils/user" import styles from "./sidebar.module.css" export default async function SidebarMyPages() { const intl = await getIntl() const profile = await getProfileSafely() const eurobonusMembership = profile?.loyalty ? getEurobonusMembership(profile.loyalty) : null return ( ) } async function PrimaryLinks() { const caller = await serverClient() const nav = await caller.navigation.myPages({}) return ( <> ) } async function SecondaryLinks() { const lang = await getLang() const caller = await serverClient() const nav = await caller.navigation.myPages({}) const intl = await getIntl() return ( <> ) }