Cylinder.jsx 1022 B

1234567891011121314151617181920212223242526272829303132
  1. import React from "react";
  2. import { darken } from "color2k";
  3. const Cylinder = ({ size = 50, color = "#b3b3b3" }) => {
  4. const colorDarken = darken(color, 0.25);
  5. return (
  6. <svg
  7. version="1.1"
  8. id="fi_758454"
  9. xmlns="http://www.w3.org/2000/svg"
  10. height={size}
  11. width={size}
  12. viewBox="0 0 377.208 377.208"
  13. >
  14. <path
  15. style={{ fill: colorDarken }}
  16. d="M188.604,111.804c-85.159,0-154.645-22.988-159.869-52.245h-0.522v261.747
  17. c0,30.824,71.576,55.902,160.392,55.902s160.392-25.078,160.392-55.902V59.559h-0.522
  18. C343.249,88.816,273.763,111.804,188.604,111.804z"
  19. ></path>
  20. <path
  21. style={{ fill: color }}
  22. d="M188.604,111.804c85.159,0,154.645-22.988,159.869-52.245c0.522-1.045,0.522-2.612,0.522-3.657
  23. C348.996,25.078,277.42,0,188.604,0S28.212,25.078,28.212,55.902c0,1.045,0,2.612,0.522,3.657
  24. C33.959,88.816,103.445,111.804,188.604,111.804z"
  25. ></path>
  26. </svg>
  27. );
  28. };
  29. export default Cylinder;