import * as routes from "@/constants/routes/myPages" import { getIntl } from "@/i18n" import type { Lang } from "@/constants/languages" import type { MyPagesLink } from "./MyPagesLink" export async function getSecondaryLinks({ lang, }: { lang: Lang }): Promise { const intl = await getIntl() const menuItems: MyPagesLink[] = [ { type: "link", text: intl.formatMessage({ id: "About Scandic Friends" }), href: routes.scandicFriends[lang], }, { type: "link", text: intl.formatMessage({ id: "My profile" }), href: routes.profile[lang], }, ] return menuItems }