onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
15 lines (14 loc) • 1.6 kB
JavaScript
import React from 'react';
export const SolarPower = ({ 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: "M22.000 2.000H2.000V15.333H22.000V2.000Z", fill: color }),
React.createElement("path", { d: "M22.000 2.000H2.000V15.333H22.000V2.000Z", fill: color }),
React.createElement("path", { d: "M10.000 2.000L2.000 10.000L14.000 22.000L22.000 14.000L10.000 2.000Z", fill: color }),
React.createElement("path", { d: "M14.000 2.000L2.000 14.000L10.000 22.000L22.000 10.000L14.000 2.000Z", fill: color }),
React.createElement("path", { d: "M15.333 8.667C19.013 8.667 22.000 5.680 22.000 2.000H19.333C19.333 4.200 17.533 6.000 15.333 6.000C13.133 6.000 11.333 4.200 11.333 2.000H8.667C8.667 5.680 11.653 8.667 15.333 8.667Z", fill: color }),
React.createElement("path", { d: "M15.333 2.000H2.000V22.000H15.333V2.000Z", fill: color }),
React.createElement("path", { d: "M18.000 12.000H2.000L2.000 20.000H22.000L18.000 12.000ZM16.360 14.000L16.760 16.000H11.000V14.000H16.360ZM11.000 12.000V16.000H3.240L5.640 12.000H11.000ZM2.840 18.000H9.000V20.000H2.440L4.840 16.000ZM13.000 18.000V18.000H17.160L19.560 18.000H13.000Z", fill: color })));
};
SolarPower.displayName = 'SolarPower';