UNPKG

onecart-ui

Version:

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

14 lines (13 loc) 1.15 kB
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const Analytics = ({ 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: "M6.000 2.000H2.000V22.000H6.000V2.000Z", fill: color }), React.createElement(Path, { d: "M22.000 2.000H2.000V22.000H22.000V2.000Z", fill: color }), React.createElement(Path, { d: "M19.778 2.000H4.222C3.000 2.000 2.000 3.000 2.000 4.222V19.778C2.000 21.000 3.000 22.000 4.222 22.000H19.778C21.000 22.000 22.000 21.000 22.000 19.778V4.222C22.000 3.000 21.000 2.000 19.778 2.000ZM19.778 19.778H4.222V4.222H19.778V19.778Z", fill: color }), React.createElement(Path, { d: "M10.000 2.000H2.000V22.000H10.000V2.000Z", fill: color }), React.createElement(Path, { d: "M15.333 2.000H2.000V22.000H15.333V2.000Z", fill: color }))); }; Analytics.displayName = 'Analytics';