- Use new tokens - Make button text bold in parking information (as in Figma) - Make local call charges a reusable component - Adds mountain facility icon - Hide “Follow us” when the hotel doesn’t have any linked socials, to avoid empty heading Approved-by: Erik Tiekstra
24 lines
612 B
TypeScript
24 lines
612 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
|
|
}
|
|
export default async function LocalCallCharges({
|
|
country,
|
|
}: LocalCallChargesProps) {
|
|
const intl = await getIntl()
|
|
|
|
return country === Country.Finland ? (
|
|
<Typography variant="Body/Supporting text (caption)/smRegular">
|
|
<p>
|
|
{intl.formatMessage({
|
|
defaultMessage: "Price 0,16 €/min + local call charges",
|
|
})}
|
|
</p>
|
|
</Typography>
|
|
) : null
|
|
}
|