feat(SW-2511): hotel page map and marker improvements * feat(SW-2511): update hotel page map * fix(SW-2511): fix issue with identical id's for POIs Approved-by: Anton Gunnarsson
32 lines
905 B
TypeScript
32 lines
905 B
TypeScript
import { cva } from "class-variance-authority"
|
|
|
|
import { PointOfInterestGroupEnum } from "@scandic-hotels/trpc/enums/pointOfInterest"
|
|
|
|
import styles from "./poi.module.css"
|
|
|
|
export const poiVariants = cva(styles.icon, {
|
|
variants: {
|
|
group: {
|
|
[PointOfInterestGroupEnum.ATTRACTIONS]: styles.attractions,
|
|
[PointOfInterestGroupEnum.BUSINESS]: styles.business,
|
|
[PointOfInterestGroupEnum.LOCATION]: styles.location,
|
|
[PointOfInterestGroupEnum.PARKING]: styles.parking,
|
|
[PointOfInterestGroupEnum.PUBLIC_TRANSPORT]: styles.publicTransport,
|
|
[PointOfInterestGroupEnum.SHOPPING_DINING]: styles.shoppingDining,
|
|
},
|
|
skipBackground: {
|
|
true: styles.transparent,
|
|
false: "",
|
|
},
|
|
size: {
|
|
small: styles.small,
|
|
medium: styles.small,
|
|
large: styles.large,
|
|
},
|
|
},
|
|
defaultVariants: {
|
|
skipBackground: false,
|
|
size: "small",
|
|
},
|
|
})
|