feat(SW-325): added additional poi groups
This commit is contained in:
@@ -1,19 +1,20 @@
|
||||
import { getIconByIconName } from "@/components/Icons/get-icon-by-icon-name"
|
||||
|
||||
import { getCategoryIconName } from "../utils"
|
||||
import { getIconByPoiGroupAndCategory } from "../utils"
|
||||
import { poiVariants } from "./variants"
|
||||
|
||||
import type { PoiMarkerProps } from "@/types/components/maps/poiMarker"
|
||||
|
||||
export default function PoiMarker({
|
||||
category,
|
||||
group,
|
||||
categoryName,
|
||||
skipBackground,
|
||||
size = 16,
|
||||
className = "",
|
||||
}: PoiMarkerProps) {
|
||||
const iconName = getCategoryIconName(category)
|
||||
const iconName = getIconByPoiGroupAndCategory(group, categoryName)
|
||||
const Icon = iconName ? getIconByIconName(iconName) : null
|
||||
const classNames = poiVariants({ category, skipBackground, className })
|
||||
const classNames = poiVariants({ group, skipBackground, className })
|
||||
|
||||
return Icon ? (
|
||||
<span className={classNames}>
|
||||
|
||||
Reference in New Issue
Block a user