Last active
February 14, 2020 16:52
-
-
Save gion/9e5e2f124d7621e751810f26b2f41b3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
export default ({ artifacts, width, height }) => ( | |
<svg width={width} height={height}> | |
<g transform={`translate(${width / 2}, ${height / 2})`}> | |
{artifacts.map((item, index) => ( | |
<circle | |
r={item.radius} | |
color={item.color} | |
key={index} | |
/> | |
))} | |
</g> | |
</svg> | |
); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment