24 lines
522 B
TypeScript
24 lines
522 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: "{amount, plural, one {# hotel} other {# hotels}}",
|
|
},
|
|
{ amount: resultCount }
|
|
)}
|
|
</Preamble>
|
|
)
|
|
}
|