* feat(BOOK-63): Replaced css variables and components to apply hotel branding on subpages * feat(BOOK-63): Replaced css variables and components to apply hotel branding on hotel page map view Approved-by: Christel Westerberg Approved-by: Matilda Landström
31 lines
795 B
TypeScript
31 lines
795 B
TypeScript
import { IconName } from '../../Icons/iconName'
|
|
|
|
export type PointOfInterestGroup =
|
|
| 'Public transport'
|
|
| 'Attractions'
|
|
| 'Business'
|
|
| 'Location'
|
|
| 'Parking'
|
|
| 'Shopping & Dining'
|
|
|
|
export function getIconByPoiGroupAndCategory(
|
|
group: PointOfInterestGroup,
|
|
category?: string
|
|
) {
|
|
switch (group) {
|
|
case 'Public transport':
|
|
return category === 'Airport' ? IconName.Airplane : IconName.Train
|
|
case 'Attractions':
|
|
return category === 'Museum' ? IconName.Museum : IconName.Camera
|
|
case 'Business':
|
|
return IconName.Business
|
|
case 'Parking':
|
|
return IconName.Parking
|
|
case 'Shopping & Dining':
|
|
return category === 'Restaurant' ? IconName.Restaurant : IconName.Shopping
|
|
case 'Location':
|
|
default:
|
|
return IconName.Location
|
|
}
|
|
}
|