onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 1.38 kB
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const Camera = ({ 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: "M14.250 2.260L14.170 2.220L14.160 2.240C13.460 2.090 12.740 2.000 12.000 2.000C6.480 2.000 2.000 6.480 2.000 12.000C2.000 17.520 6.480 22.000 12.000 22.000C17.520 22.000 22.000 17.520 22.000 12.000C22.000 7.250 18.690 3.280 14.250 2.260ZM19.410 9.000H11.420L14.130 4.300C16.530 4.960 18.480 6.720 19.410 9.000ZM13.100 4.080L10.270 9.000L9.120 11.000L6.400 6.300C7.840 4.880 9.820 4.000 12.000 4.000C12.370 4.000 12.740 4.030 13.100 4.080ZM5.700 7.090L8.540 12.000L9.690 14.000H4.260C4.100 13.360 4.000 12.690 4.000 12.000C4.000 10.150 4.640 8.450 5.700 7.090ZM4.590 15.000H12.570L9.860 19.700C7.460 19.030 5.520 17.280 4.590 15.000ZM10.900 19.910L14.890 13.000L17.610 17.700C16.160 19.120 14.180 20.000 12.000 20.000C11.620 20.000 11.260 19.960 10.900 19.910ZM18.300 16.910L14.300 10.000H19.730C19.900 10.640 20.000 11.310 20.000 12.000C20.000 13.850 19.360 15.550 18.300 16.910Z", fill: color })));
};
Camera.displayName = 'Camera';