49 lines
1.2 KiB
TypeScript
49 lines
1.2 KiB
TypeScript
"use client"
|
|
|
|
import { useIntl } from "react-intl"
|
|
|
|
import { selectHotelMap } from "@/constants/routes/hotelReservation"
|
|
|
|
import { MapIcon } from "@/components/Icons"
|
|
import Button from "@/components/TempDesignSystem/Button"
|
|
import Link from "@/components/TempDesignSystem/Link"
|
|
import useLang from "@/hooks/useLang"
|
|
|
|
import FilterAndSortModal from "../FilterAndSortModal"
|
|
|
|
import styles from "./mobileMapButtonContainer.module.css"
|
|
|
|
import type { CategorizedFilters } from "@/types/components/hotelReservation/selectHotel/hotelFilters"
|
|
|
|
export default function MobileMapButtonContainer({
|
|
filters,
|
|
}: {
|
|
filters: CategorizedFilters
|
|
}) {
|
|
const intl = useIntl()
|
|
const lang = useLang()
|
|
|
|
return (
|
|
<div className={styles.buttonContainer}>
|
|
<Button
|
|
asChild
|
|
theme="base"
|
|
variant="icon"
|
|
intent="secondary"
|
|
size="small"
|
|
>
|
|
<Link
|
|
href={selectHotelMap(lang)}
|
|
color="baseButtonTextOnFillNormal"
|
|
keepSearchParams
|
|
weight="bold"
|
|
>
|
|
<MapIcon color="baseTextHighcontrast" />
|
|
{intl.formatMessage({ id: "See on map" })}
|
|
</Link>
|
|
</Button>
|
|
<FilterAndSortModal filters={filters} />
|
|
</div>
|
|
)
|
|
}
|