onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
11 lines (10 loc) • 1 kB
JavaScript
import React from 'react';
export const ArrowBack = ({ 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: "M22.000 10.750H6.787L13.775 3.762L12.000 2.000L2.000 12.000L12.000 22.000L13.762 20.238L6.787 13.250H22.000V10.750Z", fill: color }),
React.createElement("path", { d: "M5.114 20.677H2.000L4.410 18.267L4.047 17.906L2.000 19.953L4.047 22.000L4.408 21.639L2.980 20.209H6.094V19.697Z", fill: color }),
React.createElement("path", { d: "M4.067 21.122H2.000L3.600 19.522L3.359 19.283L2.000 20.641L3.359 22.000L3.598 21.761L2.650 20.811H4.717V20.472Z", fill: color })));
};
ArrowBack.displayName = 'ArrowBack';