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
}
