UNPKG

onecart-ui

Version:

OneCart UI: Cross-platform design tokens + React & React Native components

9 lines (8 loc) 946 B
import React from 'react'; export const ChargingStation = ({ 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: "M14.273 11.091L11.545 16.545V12.909H9.727L12.455 7.455V11.091H14.273ZM16.545 3.818H7.455V4.727H16.545V3.818ZM16.545 19.273H7.455V20.182H16.545V19.273ZM16.545 2.000C17.545 2.000 18.364 2.818 18.364 3.818V20.182C18.364 21.182 17.545 22.000 16.545 22.000H7.455C6.455 22.000 5.636 21.182 5.636 20.182V3.818C5.636 2.818 6.455 2.000 7.455 2.000H16.545ZM7.455 17.455H16.545V6.545H7.455V17.455Z", fill: color }))); }; ChargingStation.displayName = 'ChargingStation';