onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 762 B
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const Layers = ({ 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: "M11.428 19.347L3.699 13.337L2.000 14.659L11.439 22.000L20.878 14.659L19.168 13.327L11.428 19.347ZM11.439 16.683L19.158 10.673L20.878 9.341L11.439 2.000L2.000 9.341L3.709 10.673L11.439 16.683ZM11.439 4.653L17.459 9.341L11.439 14.029L5.419 9.341L11.439 4.653Z", fill: color })));
};
Layers.displayName = 'Layers';