feat(SW-2038): refactor and create wrapper for static map and button * feat(SW-2038): refactor and create wrapper for static map and button * feature: use button from design-system over creating a new one * remove unused fragment * fix(SW-2038): add removed css * fix(SW-2038): update fake button component * fix(SW-2038): move FakeButton to design system Approved-by: Erik Tiekstra Approved-by: Joakim Jäderberg
26 lines
608 B
TypeScript
26 lines
608 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(
|
|
{
|
|
defaultMessage: "{amount, plural, one {# hotel} other {# hotels}}",
|
|
},
|
|
{ amount: resultCount }
|
|
)}
|
|
</span>
|
|
</Typography>
|
|
)
|
|
}
|