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
32 lines
749 B
TypeScript
32 lines
749 B
TypeScript
"use client"
|
|
import { usePathname } from "next/navigation"
|
|
import { useIntl } from "react-intl"
|
|
|
|
import Link from "@scandic-hotels/design-system/OldDSLink"
|
|
|
|
import { isWebview } from "@/constants/routes/webviews"
|
|
|
|
import CustomerSupport from "./CustomerSupport"
|
|
|
|
import styles from "./cancelled.module.css"
|
|
|
|
export default function Cancelled() {
|
|
const intl = useIntl()
|
|
const pathname = usePathname()
|
|
return (
|
|
<>
|
|
{/* (S) TODO - Link to where?? */}
|
|
{!isWebview(pathname) && (
|
|
<Link className={styles.link} href="#">
|
|
{intl.formatMessage({
|
|
defaultMessage: "Rebook",
|
|
id: "myStay.referenceCard.actions.rebook",
|
|
})}
|
|
</Link>
|
|
)}
|
|
|
|
<CustomerSupport />
|
|
</>
|
|
)
|
|
}
|