Files
web/apps/scandic-web/hooks/booking/useRateTitles.ts
Linus Flood e4907d4b47 Merged in fix/destinations-speed-test (pull request #1704)
Feat(destination pages): Performance improvements

* fix/destinations: try cache full response

* Added more caching

* Removed unsed env car

* wip

* merge master

* wip

* wip

* wip

* Renaming


Approved-by: Michael Zetterberg
2025-04-02 11:37:22 +00:00

25 lines
618 B
TypeScript

"use client"
import { useIntl } from "react-intl"
export default function useRateTitles() {
const intl = useIntl()
const payNow = intl.formatMessage({ id: "Pay now" })
return {
change: {
paymentTerm: payNow,
title: intl.formatMessage({ id: "Free rebooking" }),
},
flex: {
paymentTerm: intl.formatMessage({ id: "Pay later" }),
title: intl.formatMessage({ id: "Free cancellation" }),
},
save: {
paymentTerm: payNow,
title: intl.formatMessage({ id: "Non-refundable" }),
},
noPriceAvailable: intl.formatMessage({ id: "No prices available" }),
}
}