import React from 'react';
import SimpleMap from '../../components/SimpleMap';
import ClusterLayer from '../../components/ClusterLayer';

function ClusterMap({ mapConfig, className = '', points, initMap, children, ...props }) {
  return (
    <SimpleMap className={className} initMap={initMap} mapConfig={mapConfig}>
      <ClusterLayer points={points} {...props} />
      {children}
    </SimpleMap>
  );
}

export default ClusterMap;
