onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 674 B
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const Close = ({ 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: "M22.000 4.014L19.986 2.000L12.000 9.986L4.014 2.000L2.000 4.014L9.986 12.000L2.000 19.986L4.014 22.000L12.000 14.014L19.986 22.000L22.000 19.986L14.014 12.000L22.000 4.014Z", fill: color })));
};
Close.displayName = 'Close';