onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
13 lines (12 loc) • 1.1 kB
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const AddToDrive = ({ 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: "M9.464 2.000L2.000 15.325L5.641 22.000L13.323 8.687L9.464 2.000Z", fill: color }),
React.createElement(Path, { d: "M14.500 12.000C14.713 12.000 14.912 12.012 15.113 12.025L9.500 2.000H2.000L16.600 6.800C17.963 5.388 19.875 4.500 22.000 4.500Z", fill: color }),
React.createElement(Path, { d: "M6.996 15.278H2.000L2.000 18.805H13.824C7.572 22.000 6.693 19.880 6.693 17.549C6.693 16.762 6.799 16.005 6.996 15.278Z", fill: color }),
React.createElement(Path, { d: "M16.000 4.000V2.000H8.000V8.000H2.000V12.000H8.000V18.000H10.000H16.000V8.000H22.000V4.000H16.000Z", fill: color })));
};
AddToDrive.displayName = 'AddToDrive';