UNPKG

onecart-ui

Version:

OneCart UI: Cross-platform design tokens + React & React Native components

9 lines (8 loc) 1.19 kB
import React from 'react'; export const Build = ({ size = 'md', color = 'currentColor', className, style, }) => { const sizeMap = { xs: 16, sm: 20, md: 24, lg: 32, xl: 40 }; const iconSize = typeof size === 'number' ? size : sizeMap[size]; return (React.createElement("svg", { width: iconSize, height: iconSize, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, style: style }, React.createElement("path", { d: "M21.586 18.386L13.582 10.383C14.402 8.320 13.979 5.887 12.313 4.212C10.286 2.185 7.130 2.000 4.882 3.639L8.267 7.033L7.015 8.276L3.639 4.900C2.000 7.139 2.185 10.303 4.212 12.322C5.852 13.961 8.241 14.393 10.286 13.626L18.316 21.656C18.659 22.000 19.215 22.000 19.558 21.656L21.586 19.629C21.938 19.294 21.938 18.739 21.586 18.386ZM18.941 19.796L10.603 11.458C10.065 11.855 9.466 12.093 8.840 12.181C7.641 12.357 6.381 11.996 5.464 11.079C4.627 10.250 4.239 9.140 4.301 8.047L7.024 10.770L10.762 7.033L8.038 4.309C9.131 4.248 10.233 4.636 11.070 5.464C12.022 6.416 12.383 7.729 12.163 8.955C12.057 9.580 11.793 10.162 11.387 10.682L19.717 19.012L18.941 19.796Z", fill: color }))); }; Build.displayName = 'Build';