32 lines
863 B
TypeScript
32 lines
863 B
TypeScript
import BiroScript from "@/components/TempDesignSystem/Text/BiroScript"
|
|
import Title from "@/components/TempDesignSystem/Text/Title"
|
|
import { getIntl } from "@/i18n"
|
|
|
|
import styles from "./header.module.css"
|
|
|
|
import type { Hotel } from "@/types/hotel"
|
|
|
|
export async function Header({
|
|
cityName,
|
|
name,
|
|
}: Pick<Hotel, "cityName" | "name">) {
|
|
const intl = await getIntl()
|
|
return (
|
|
<header>
|
|
<Title as="h2" color="white" className={styles.title} textAlign="center">
|
|
<BiroScript type="two" tilted="medium">
|
|
{intl.formatMessage({
|
|
defaultMessage: "My stay at",
|
|
})}
|
|
{
|
|
/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */
|
|
" "
|
|
}
|
|
</BiroScript>
|
|
<span className={styles.hotelName}>{name}</span>
|
|
{cityName}
|
|
</Title>
|
|
</header>
|
|
)
|
|
}
|