onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 1.02 kB
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const Nightlight = ({ 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 4.000C12.340 4.000 12.680 4.020 13.010 4.070C11.100 6.230 10.000 9.050 10.000 12.000C10.000 14.950 11.100 17.770 13.010 19.930C12.680 19.980 12.340 20.000 12.000 20.000C7.590 20.000 4.000 16.410 4.000 12.000C4.000 7.590 7.590 4.000 12.000 4.000ZM12.000 2.000C6.480 2.000 2.000 6.480 2.000 12.000C2.000 17.520 6.480 22.000 12.000 22.000C13.820 22.000 15.530 21.500 17.000 20.650C14.010 18.920 12.000 15.700 12.000 12.000C12.000 8.300 14.010 5.080 17.000 3.350C15.530 2.500 13.820 2.000 12.000 2.000Z", fill: color })));
};
Nightlight.displayName = 'Nightlight';