Fix/SW-932-translation hotelpage header * fix: add translation for hotel page header * fix: add hotel translation * fix: add translation where to when loading * fix: update hotel(s) count if filtered * fix(SW-932): update hotel(s) count Approved-by: Pontus Dreij Approved-by: Niclas Edenvin
23 lines
481 B
TypeScript
23 lines
481 B
TypeScript
"use client"
|
|
import { useIntl } from "react-intl"
|
|
|
|
import { useHotelFilterStore } from "@/stores/hotel-filters"
|
|
|
|
import Preamble from "@/components/TempDesignSystem/Text/Preamble"
|
|
|
|
export default function HotelCount() {
|
|
const intl = useIntl()
|
|
const resultCount = useHotelFilterStore((state) => state.resultCount)
|
|
|
|
return (
|
|
<Preamble>
|
|
{intl.formatMessage(
|
|
{
|
|
id: "Hotel(s)",
|
|
},
|
|
{ amount: resultCount }
|
|
)}
|
|
</Preamble>
|
|
)
|
|
}
|