onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 726 B
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const WaterfallChart = ({ 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: "M18.667 2.000H22.000V19.778H18.667V2.000ZM2.000 12.000H5.333V19.778H2.000V12.000ZM14.222 2.000H17.556V5.333H14.222V2.000ZM9.778 3.111H13.111V7.556H9.778V3.111ZM6.444 8.667H9.778V13.111H6.444V8.667Z", fill: color })));
};
WaterfallChart.displayName = 'WaterfallChart';