diff --git a/admin/inertia/components/maps/MarkerPin.tsx b/admin/inertia/components/maps/MarkerPin.tsx index 94c86af..44d3e72 100644 --- a/admin/inertia/components/maps/MarkerPin.tsx +++ b/admin/inertia/components/maps/MarkerPin.tsx @@ -1,17 +1,72 @@ -import { IconMapPinFilled } from '@tabler/icons-react' +import {IconCircleFilled} from '@tabler/icons-react' +import type { ComponentType, CSSProperties } from 'react' + +type MarkerIconProps = { + size?: number + color?: string + style?: CSSProperties + className?: string +} interface MarkerPinProps { color?: string active?: boolean + Icon?: ComponentType + iconColor?: string } -export default function MarkerPin({ color = '#a84a12', active = false }: MarkerPinProps) { +export default function MarkerPin({ + color = '#a84a12', + active = false, + Icon = IconCircleFilled, + iconColor = '#ffffff', + }: MarkerPinProps) { + const width = active ? 42 : 36 + const height = active ? 52 : 46 + const iconSize = active ? 18 : 16 + return ( -
- +
+ + +
+ +
) } +