Files
web/apps/scandic-web/components/Icons/IllustrationByIconName.ts
Matilda Landström 5de2a993a7 Merged in feat/SW-1711-switch-icons (pull request #1558)
Switches out all the old icons to new ones, and moves them to the design system. The new icons are of three different types: Materialise Symbol, Nucleo, and Customized. Also adds further mapping between facilities/amenities and icons.

Approved-by: Michael Zetterberg
Approved-by: Erik Tiekstra
2025-03-27 09:42:52 +00:00

51 lines
1.1 KiB
TypeScript

import {
BedIcon,
CoinIcon,
CroissantCoffeeEggIcon,
CutleryOneIcon,
CutleryTwoIcon,
GiftOpenIcon,
HandKeyIcon,
HotelNightIcon,
KidsIcon,
KidsMocktailIcon,
MagicWandIcon,
MoneyHandIcon,
VoucherIcon,
} from "@scandic-hotels/design-system/Icons"
import { IconName } from "./iconName"
export function IllustrationByIconName(iconName: IconName | null) {
switch (iconName) {
case IconName.Kids:
return KidsIcon
case IconName.KidsMocktail:
return KidsMocktailIcon
case IconName.MagicWand:
return MagicWandIcon
case IconName.MoneyHand:
return MoneyHandIcon
case IconName.HandKey:
return HandKeyIcon
case IconName.HotelNight:
return HotelNightIcon
case IconName.GiftOpen:
return GiftOpenIcon
case IconName.CutleryOne:
return CutleryOneIcon
case IconName.CutleryTwo:
return CutleryTwoIcon
case IconName.CroissantCoffeeEgg:
return CroissantCoffeeEggIcon
case IconName.Coin:
return CoinIcon
case IconName.Bed:
return BedIcon
case IconName.Voucher:
return VoucherIcon
default:
return null
}
}