onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 645 B
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const Star = ({ 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: "M12.000 17.270L18.180 21.000L16.540 13.970L22.000 9.240L14.810 8.630L12.000 2.000L9.190 8.630L2.000 9.240L7.460 13.970L5.820 21.000L12.000 17.270Z", fill: color })));
};
Star.displayName = 'Star';