feat(SW-325): added pois to the list and dynamic map
This commit is contained in:
18
server/routers/hotels/utils.ts
Normal file
18
server/routers/hotels/utils.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { IconName } from "@/types/components/icon"
|
||||
|
||||
export function getIconByPoiCategory(category: string) {
|
||||
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 null
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user