UNPKG

onecart-ui

Version:

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

9 lines (8 loc) 744 B
import React from 'react'; export const LocalBar = ({ 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: "M15.078 8.667L12.000 12.122L8.922 8.667H15.078ZM22.000 2.000H2.000V4.222L10.889 14.222V19.778H5.333V22.000H18.667V19.778H13.111V14.222L22.000 4.222V2.000ZM6.922 6.444L4.956 4.222H19.056L17.078 6.444H6.922Z", fill: color }))); }; LocalBar.displayName = 'LocalBar';