52 lines
1.5 KiB
TypeScript
52 lines
1.5 KiB
TypeScript
import { SignatureHotelEnum } from "@scandic-hotels/common/constants/signatureHotels"
|
|
import BassinSevenIcon from "./BassinSeven"
|
|
import DowntownCamperIcon from "./DowntownCamper"
|
|
import GrandHotelOsloLogoIcon from "./GrandHotelOslo"
|
|
import HaymarketIcon from "./Haymarket"
|
|
import HotelNorgeIcon from "./HotelNorge"
|
|
import MarskiLogoIcon from "./Marski"
|
|
import ScandicGoLogoIcon from "./ScandicGoLogo"
|
|
import ScandicLogoIcon from "./ScandicLogo"
|
|
import TheDockIcon from "./TheDock"
|
|
|
|
type HotelLogoProps = {
|
|
hotelId: string
|
|
hotelType: string
|
|
height?: number
|
|
}
|
|
|
|
enum HotelTypeEnum {
|
|
Signature = "signature",
|
|
ScandicGo = "scandicgo",
|
|
Regular = "regular",
|
|
}
|
|
|
|
export default function HotelLogoIcon({
|
|
hotelId,
|
|
hotelType,
|
|
height,
|
|
}: HotelLogoProps) {
|
|
if (hotelType === HotelTypeEnum.ScandicGo) {
|
|
return <ScandicGoLogoIcon height={height} />
|
|
}
|
|
|
|
switch (hotelId) {
|
|
case SignatureHotelEnum.Haymarket:
|
|
return <HaymarketIcon height={height} />
|
|
case SignatureHotelEnum.HotelNorge:
|
|
return <HotelNorgeIcon height={height} />
|
|
case SignatureHotelEnum.DowntownCamper:
|
|
return <DowntownCamperIcon height={height} />
|
|
case SignatureHotelEnum.GrandHotelOslo:
|
|
return <GrandHotelOsloLogoIcon height={height} />
|
|
case SignatureHotelEnum.Marski:
|
|
return <MarskiLogoIcon height={height} />
|
|
case SignatureHotelEnum.TheDock:
|
|
return <TheDockIcon height={height} />
|
|
case SignatureHotelEnum.BassinSeven:
|
|
return <BassinSevenIcon height={height} />
|
|
default:
|
|
return <ScandicLogoIcon height={height} />
|
|
}
|
|
}
|