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
656 B
TypeScript
27 lines
656 B
TypeScript
"use client"
|
|
|
|
import { useIntl } from "react-intl"
|
|
|
|
import { Typography } from "@scandic-hotels/design-system/Typography"
|
|
|
|
import { useHotelFilterStore } from "../../../stores/hotel-filters"
|
|
|
|
export default function HotelCount() {
|
|
const intl = useIntl()
|
|
const resultCount = useHotelFilterStore((state) => state.resultCount)
|
|
|
|
return (
|
|
<Typography variant="Title/Subtitle/md">
|
|
<span>
|
|
{intl.formatMessage(
|
|
{
|
|
id: "common.numberOfHotels",
|
|
defaultMessage: "{amount, plural, one {# hotel} other {# hotels}}",
|
|
},
|
|
{ amount: resultCount }
|
|
)}
|
|
</span>
|
|
</Typography>
|
|
)
|
|
}
|