import React, { FC, CSSProperties, useEffect } from 'react'; import classNames from '@pansy/classnames'; import { Map, MapProps } from '@sensoro/react-amap'; import { MAP_CONFIG, MAP_STYLES } from '@/config/map'; import { SystemTheme } from '@/common/types'; import styles from './index.less'; interface AMapProps extends MapProps { theme?: SystemTheme; style?: CSSProperties; className?: string; } const AMap: FC = props => { const { children, theme, mapStyle, style, className, events, ...rest } = props; return (
{children}
); }; export default React.memo(AMap);