diff --git a/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/CityMap/HotelList/Content.tsx b/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/CityMap/HotelList/Content.tsx
new file mode 100644
index 000000000..ab5185871
--- /dev/null
+++ b/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/CityMap/HotelList/Content.tsx
@@ -0,0 +1,56 @@
+"use client"
+
+import { useIntl } from "react-intl"
+import { useMediaQuery } from "usehooks-ts"
+
+import Alert from "@/components/TempDesignSystem/Alert"
+
+import HotelCardCarousel from "../../../HotelCardCarousel"
+import HotelListItem from "../HotelListItem"
+
+import styles from "./hotelList.module.css"
+
+import { AlertTypeEnum } from "@/types/enums/alert"
+import type { DestinationPagesHotelData } from "@/types/hotel"
+
+interface HotelListContentProps {
+ hotelsCount: number
+ visibleHotels: DestinationPagesHotelData[]
+}
+
+export default function HotelListContent({
+ hotelsCount,
+ visibleHotels,
+}: HotelListContentProps) {
+ const intl = useIntl()
+ const isMobile = useMediaQuery("(max-width: 949px)")
+
+ if (hotelsCount === 0) {
+ return (
+
+ )
+ }
+
+ if (isMobile) {
+ return
+ }
+
+ return (
+
+ {visibleHotels.map(({ hotel, url }) => (
+ -
+
+
+ ))}
+
+ )
+}
diff --git a/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/CityMap/HotelList/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/CityMap/HotelList/index.tsx
index c8feaab38..0ccdaa7b8 100644
--- a/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/CityMap/HotelList/index.tsx
+++ b/apps/scandic-web/components/ContentType/DestinationPage/DestinationCityPage/CityMap/HotelList/index.tsx
@@ -7,18 +7,15 @@ import { useIntl } from "react-intl"
import { useDestinationDataStore } from "@/stores/destination-data"
import DestinationFilterAndSort from "@/components/DestinationFilterAndSort"
-import Alert from "@/components/TempDesignSystem/Alert"
import Body from "@/components/TempDesignSystem/Text/Body"
import { debounce } from "@/utils/debounce"
-import HotelCardCarousel from "../../../HotelCardCarousel"
-import HotelListItem from "../HotelListItem"
+import HotelListContent from "./Content"
import HotelListSkeleton from "./HotelListSkeleton"
import { getVisibleHotels } from "./utils"
import styles from "./hotelList.module.css"
-import { AlertTypeEnum } from "@/types/enums/alert"
import type { DestinationPagesHotelData } from "@/types/hotel"
export default function HotelList() {
@@ -56,9 +53,11 @@ export default function HotelList() {
}
}, [map, coreLib, debouncedUpdateVisibleHotels])
- return isLoading ? (
-
- ) : (
+ if (isLoading) {
+ return
+ }
+
+ return (
@@ -71,29 +70,11 @@ export default function HotelList() {
- {activeHotels.length === 0 ? (
-
- ) : (
- <>
-
-
- {visibleHotels.map(({ hotel, url }) => (
- -
-
-
- ))}
-
- >
- )}
+
+
)
}