fix(BOOK-210): add local charges for Finland and update design for hotel card * fix(BOOK-210): add local charges for Finland and update design for hotel card * feat(BOOK-210): change variant to conditional classname * fix(BOOK-210): update link with icon * fix(BOOK-210): update buttonlink tripadvisor * fix(BOOK-210): switch wrapper logic * fix(BOOK-210): update variants tripadvisor Approved-by: Erik Tiekstra
26 lines
668 B
TypeScript
26 lines
668 B
TypeScript
import { Typography } from "@scandic-hotels/design-system/Typography"
|
|
import { Country } from "@scandic-hotels/trpc/types/country"
|
|
|
|
import { getIntl } from "@/i18n"
|
|
|
|
interface LocalCallChargesProps {
|
|
country: string
|
|
className?: string
|
|
}
|
|
export default async function LocalCallCharges({
|
|
country,
|
|
className,
|
|
}: LocalCallChargesProps) {
|
|
const intl = await getIntl()
|
|
|
|
return country === Country.Finland ? (
|
|
<Typography variant="Body/Supporting text (caption)/smRegular">
|
|
<p className={className}>
|
|
{intl.formatMessage({
|
|
defaultMessage: "Price 0,16 €/min + local call charges",
|
|
})}
|
|
</p>
|
|
</Typography>
|
|
) : null
|
|
}
|