feat/myprofile-menu fixed casing * feat/myprofile-menu fixed casing Approved-by: Erik Tiekstra
29 lines
639 B
TypeScript
29 lines
639 B
TypeScript
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<MyPagesLink[]> {
|
|
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
|
|
}
|