onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 820 B
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const Create = ({ 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: "M2.000 17.746V21.890H6.144L18.365 9.669L14.221 5.525L2.000 17.746ZM5.227 19.680H4.210V18.663L14.221 8.652L15.238 9.669L5.227 19.680ZM21.569 4.906L18.983 2.320C18.762 2.099 18.486 2.000 18.199 2.000C17.912 2.000 17.635 2.110 17.425 2.320L15.403 4.343L19.547 8.486L21.569 6.464C22.000 6.033 22.000 5.337 21.569 4.906Z", fill: color })));
};
Create.displayName = 'Create';