import { memo } from 'react'; import type { MiniMapNodeProps } from './types'; import cc from 'classcat'; const MiniMapNode = ({ id, x, y, width, height, style, color, strokeColor, strokeWidth, className, borderRadius, shapeRendering, onClick, }: MiniMapNodeProps) => { const { background, backgroundColor } = style || {}; const fill = (color || background || backgroundColor) as string; return ( onClick(event, id) : undefined} /> ); }; MiniMapNode.displayName = 'MiniMapNode'; export default memo(MiniMapNode);