UNPKG

onecart-ui

Version:

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

17 lines (16 loc) 2.14 kB
import React from 'react'; export const AutoMode = ({ 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: "M11.562 9.640L8.107 6.185C4.725 10.248 2.511 15.285 2.000 20.856H6.891C2.000 22.000 3.679 18.156 6.209 14.993Z", fill: color }), React.createElement("path", { d: "M22.000 2.000V2.000C13.357 2.402 9.196 4.251 5.840 7.045L8.694 9.899C11.307 7.809 14.483 6.422 17.960 6.040Z", fill: color }), React.createElement("path", { d: "M19.764 4.792C17.907 3.246 15.604 2.234 13.057 2.000V2.000C17.217 2.211 18.974 2.979 20.420 4.136L22.000 2.556Z", fill: color }), React.createElement("path", { d: "M2.000 12.000L8.880 15.120L12.000 22.000L15.120 15.120L22.000 12.000L15.120 8.880L12.000 2.000L8.880 8.880L2.000 12.000Z", fill: color }), React.createElement("path", { d: "M19.764 2.000H22.000C15.059 6.160 14.047 3.858 12.501 2.000L10.921 3.580C12.078 5.026 12.845 6.783 13.057 8.707Z", fill: color }), React.createElement("path", { d: "M12.261 7.606C9.360 7.606 6.804 6.123 5.302 3.875H7.597V2.009H2.000V7.606H3.866V5.088C5.722 7.737 8.782 9.472 12.261 9.472C16.804 9.472 20.657 6.515 22.000 2.420L20.172 2.000C19.024 5.256 15.918 7.606 12.261 7.606Z", fill: color }), React.createElement("path", { d: "M2.000 22.000V19.491C3.167 19.553 2.521 19.841 2.000 20.274L2.443 20.717C2.849 20.393 3.342 20.178 3.882 20.118Z", fill: color }), React.createElement("path", { d: "M2.000 22.000V20.449C2.721 20.488 2.322 20.665 2.000 20.933L2.274 21.207C2.525 21.007 2.829 20.873 3.163 20.837Z", fill: color }), React.createElement("path", { d: "M2.000 22.000H2.693C3.283 20.548 2.969 19.834 2.490 19.258L2.000 19.748C2.359 20.196 2.597 20.741 2.662 21.338Z", fill: color }))); }; AutoMode.displayName = 'AutoMode';