Feat/lokalise rebuild * chore(lokalise): update translation ids * chore(lokalise): easier to switch between projects * chore(lokalise): update translation ids * . * . * . * . * . * . * chore(lokalise): update translation ids * chore(lokalise): update translation ids * . * . * . * chore(lokalise): update translation ids * chore(lokalise): update translation ids * . * . * chore(lokalise): update translation ids * chore(lokalise): update translation ids * chore(lokalise): new translations * merge * switch to errors for missing id's * merge * sync translations Approved-by: Linus Flood
27 lines
709 B
TypeScript
27 lines
709 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({
|
|
id: "common.localCallCharges",
|
|
defaultMessage: "Price: €0.16/min + local call charges",
|
|
})}
|
|
</p>
|
|
</Typography>
|
|
) : null
|
|
}
|