22 lines
638 B
TypeScript
22 lines
638 B
TypeScript
import { IconName } from "@/types/components/icon"
|
|
import { PointOfInterestCategory } from "@/types/hotel"
|
|
|
|
/* 2024-09-18: At the moment, the icons for the different categories is unknown.
|
|
This will be handled later. */
|
|
export function getCategoryIconName(category?: PointOfInterestCategory | null) {
|
|
switch (category) {
|
|
case "Transportations":
|
|
return IconName.Train
|
|
case "Shopping":
|
|
return IconName.Shopping
|
|
case "Museum":
|
|
return IconName.Museum
|
|
case "Tourist":
|
|
return IconName.Cultural
|
|
case "Restaurant":
|
|
return IconName.Restaurant
|
|
default:
|
|
return IconName.StarFilled
|
|
}
|
|
}
|