import cc from 'classcat'; import type { MiniMapNodeProps } from './types'; function MiniMapNodeComponent(p: MiniMapNodeProps) { // id, // x, // y, // width, // height, // style, // color, // strokeColor, // strokeWidth, // className, // borderRadius, // shapeRendering, // selected, // onClick, // }: MiniMapNodeProps) { // const { background, backgroundColor } = style || {}; const fill = () => (p.color || p.style?.background || p.style?.["background-color"]) as string; const onClick = (event: MouseEvent) => { if (p.onClick) { p.onClick(event, p.id); } } return ( ); } export const MiniMapNode = MiniMapNodeComponent;