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 Divider from "@/components/TempDesignSystem/Divider" 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 nav = await serverClient().navigation.myPages({}) return ( <> ) } async function SecondaryLinks() { const lang = getLang() const nav = await serverClient().navigation.myPages({}) const intl = await getIntl() return ( <> ) }