onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
9 lines (8 loc) • 790 B
JavaScript
import React from 'react';
export const Layers = ({ 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: "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';