UNPKG

onecart-ui

Version:

OneCart UI: Cross-platform design tokens + React & React Native components

10 lines (9 loc) 1 kB
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const ModeNight = ({ 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: "M7.000 4.000C11.410 4.000 15.000 7.590 15.000 12.000C15.000 16.410 11.410 20.000 7.000 20.000C6.660 20.000 6.320 19.980 5.990 19.930C7.900 17.770 9.000 14.950 9.000 12.000C9.000 9.050 7.900 6.230 5.990 4.070C6.320 4.020 6.660 4.000 7.000 4.000ZM7.000 2.000C5.180 2.000 3.470 2.500 2.000 3.350C4.990 5.080 7.000 8.300 7.000 12.000C7.000 15.700 4.990 18.920 2.000 20.650C3.470 21.500 5.180 22.000 7.000 22.000C12.520 22.000 17.000 17.520 17.000 12.000C17.000 6.480 12.520 2.000 7.000 2.000Z", fill: color }))); }; ModeNight.displayName = 'ModeNight';