onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 813 B
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const StarBorder = ({ 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 9.240L14.810 8.620L12.000 2.000L9.190 8.630L2.000 9.240L7.460 13.970L5.820 21.000L12.000 17.270L18.180 21.000L16.550 13.970L22.000 9.240ZM12.000 15.400L8.240 17.670L9.240 13.390L5.920 10.510L10.300 10.130L12.000 6.100L13.710 10.140L18.090 10.520L14.770 13.400L15.770 17.680L12.000 15.400Z", fill: color })));
};
StarBorder.displayName = 'StarBorder';