Files
web/apps/partner-sas/components/Menu/NavigationMenu/index.tsx
Erik Tiekstra 333636c81a Merged in feat/BOOK-61-refactor-hotel-page-css-variables (pull request #3014)
Feat/BOOK-61 refactor hotel page css variables

* feat(BOOK-61): Breadcrumbs

* feat(BOOK-61): intro section

* feat(BOOK-61): show more button

* feat(BOOK-61): rooms section

* feat(BOOK-61): sidepeeks

* feat(BOOK-61): deprecated old Link component

* feat(BOOK-61): added new TextLink component to the design-system

* feat(BOOK-61): replaced deprecated links with new TextLink component

* feat(BOOK-61): miscellaneous changes


Approved-by: Bianca Widstam
Approved-by: Christel Westerberg
2025-10-29 09:15:03 +00:00

54 lines
1.6 KiB
TypeScript

"use client"
import { useIntl } from "react-intl"
import { customerService } from "@scandic-hotels/common/constants/routes/customerService"
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
import Link from "@scandic-hotels/design-system/OldDSLink"
import { Typography } from "@scandic-hotels/design-system/Typography"
import { LanguageSwitcher } from "@/components/LanguageSwitcher"
import useLang from "@/hooks/useLang"
import { routeToScandicWeb } from "@/util"
import { UserMenu } from "../UserMenu"
import styles from "./navigation-menu.module.css"
export function NavigationMenu({ isMobile = false }: { isMobile?: boolean }) {
const intl = useIntl()
const lang = useLang()
return (
<div
className={`styles.menuItems ${isMobile ? styles.mobileMenu : styles.desktopMenu}`}
>
<Typography
variant={
isMobile
? "Body/Paragraph/mdRegular"
: "Body/Supporting text (caption)/smRegular"
}
>
<Link
href={routeToScandicWeb(customerService)[lang]}
color={isMobile ? "none" : "white"}
className={`${styles.menuItem} ${styles.contactLink}`}
>
{isMobile ? null : (
<MaterialIcon icon="call" size={16} color={"CurrentColor"} />
)}
{intl.formatMessage({
id: "common.contactUs",
defaultMessage: "Contact us",
})}
</Link>
</Typography>
<LanguageSwitcher currentLanguage={lang} isMobile={isMobile} />
{!isMobile && <UserMenu isMobile={isMobile} />}
</div>
)
}