mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
20 lines
476 B
JavaScript
20 lines
476 B
JavaScript
import React from 'react';
|
|
import _ from 'lodash';
|
|
|
|
export default function NodeShapeCircleStack(props) {
|
|
const propsNoHighlight = _.clone(props);
|
|
const Shape = props.shape;
|
|
delete propsNoHighlight.highlighted;
|
|
return (
|
|
<g className="stack">
|
|
<g transform="translate(0, 4)">
|
|
<Shape {...propsNoHighlight} />
|
|
</g>
|
|
<Shape {...props} />
|
|
<g transform="translate(0, -4)">
|
|
<Shape {...propsNoHighlight} />
|
|
</g>
|
|
</g>
|
|
);
|
|
}
|