'use client' import React from 'react' import { MapContainer, TileLayer, Marker, Popup } from 'react-leaflet' import L from 'leaflet' import 'leaflet/dist/leaflet.css' interface MapComponentProps { position: [number, number] popupText?: string } const MapComponent: React.FC = ({ position, popupText = 'Business Location' }) => { // Define custom icon inline const customIcon = new L.Icon({ iconUrl: '/marker-icon.png', iconRetinaUrl: '/marker-icon-2x.png', shadowUrl: '/marker-shadow.png', iconSize: [25, 41], iconAnchor: [12, 41], popupAnchor: [1, -34], shadowSize: [41, 41] }); return ( {popupText} ) } export default MapComponent