Created
April 1, 2021 17:24
-
-
Save LuffyAnshul/4047dde7f495abb3ed6c9c6342dfe4e8 to your computer and use it in GitHub Desktop.
WildFire Tracker Location Marker JS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Icon } from '@iconify/react'; | |
import locationIcon from '@iconify/icons-mdi/fire-alert'; | |
const LocationMarker = ({ lat, lng, onClick }) => { | |
return ( | |
<div className="location-marker" onClick={onClick}> | |
<Icon icon={locationIcon} className="location-icon" /> | |
</div> | |
) | |
} | |
export default LocationMarker; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment