onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 561 B
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const ArrowLeft = ({ size = 'md', color = 'currentColor', 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", style: style },
React.createElement(Path, { d: "M16.000 2.000L6.000 12.000L16.000 22.000V2.000Z", fill: color })));
};
ArrowLeft.displayName = 'ArrowLeft';