feat(SW-664): Hotel listing component and queries for content pages
This commit is contained in:
34
components/Icons/Logos/index.tsx
Normal file
34
components/Icons/Logos/index.tsx
Normal file
@@ -0,0 +1,34 @@
|
||||
import {
|
||||
DowntownCamperIcon,
|
||||
GrandHotelOsloLogoIcon,
|
||||
HaymarketIcon,
|
||||
HotelNorgeIcon,
|
||||
MarskiLogoIcon,
|
||||
ScandicGoLogoIcon,
|
||||
ScandicLogoIcon,
|
||||
} from "@/components/Icons"
|
||||
|
||||
import type { HotelLogoProps } from "@/types/components/hotelLogo"
|
||||
import { HotelTypeEnum } from "@/types/enums/hotelType"
|
||||
import { SignatureHotelEnum } from "@/types/enums/signatureHotel"
|
||||
|
||||
export default function HotelLogo({ hotelId, hotelType }: HotelLogoProps) {
|
||||
if (hotelType === HotelTypeEnum.ScandicGo) {
|
||||
return <ScandicGoLogoIcon />
|
||||
}
|
||||
|
||||
switch (hotelId) {
|
||||
case SignatureHotelEnum.Haymarket:
|
||||
return <HaymarketIcon />
|
||||
case SignatureHotelEnum.HotelNorge:
|
||||
return <HotelNorgeIcon />
|
||||
case SignatureHotelEnum.DowntownCamper:
|
||||
return <DowntownCamperIcon />
|
||||
case SignatureHotelEnum.GrandHotelOslo:
|
||||
return <GrandHotelOsloLogoIcon />
|
||||
case SignatureHotelEnum.Marski:
|
||||
return <MarskiLogoIcon />
|
||||
default:
|
||||
return <ScandicLogoIcon color="red" />
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user