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
25 lines
618 B
TypeScript
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" }),
|
|
}
|
|
}
|