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
34 lines
920 B
TypeScript
34 lines
920 B
TypeScript
import Title from "@scandic-hotels/design-system/Title"
|
|
|
|
import BiroScript from "@/components/TempDesignSystem/Text/BiroScript"
|
|
import { getIntl } from "@/i18n"
|
|
|
|
import styles from "./header.module.css"
|
|
|
|
import type { Hotel } from "@scandic-hotels/trpc/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({
|
|
id: "myStay.header.myStayAt",
|
|
defaultMessage: "My stay at",
|
|
})}
|
|
{
|
|
/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */
|
|
" "
|
|
}
|
|
</BiroScript>
|
|
<span className={styles.hotelName}>{name}</span>
|
|
{cityName}
|
|
</Title>
|
|
</header>
|
|
)
|
|
}
|