import {useState} from 'react' // Src import CustomNaverMap from './map/NaverMap.tsx' import CustomMarker from './map/Marker.tsx' // Types import {SingleLocationMapObjectValue} from '../types' import {getIconSize} from '../libs/helper.ts' type Props = SingleLocationMapObjectValue const { size, scaledSize, origin, anchor, } = getIconSize() export default function SingleLocationMap(props: Props) { const { atts: { height, post_id, width, zoom, }, data: { alt_title, coord, }, mapIcon, } = props const [map, setMap] = useState(null) return ( { setMap(() => _map) }} style={{ height: height, width: width, }} > {map && } ) }