onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 1.19 kB
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const AppleLogo = ({ 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: "M16.493 12.602C16.468 10.075 18.554 8.863 18.647 8.803C17.475 7.087 15.649 6.853 14.998 6.826C13.445 6.668 11.967 7.741 11.177 7.741C10.391 7.741 9.174 6.849 7.885 6.873C6.193 6.897 4.632 7.856 3.760 9.373C2.000 12.426 3.309 16.950 5.024 19.426C5.862 20.638 6.862 22.000 8.173 21.950C9.437 21.900 9.914 21.133 11.442 21.133C12.969 21.133 13.399 21.951 14.736 21.926C16.096 21.900 16.957 20.690 17.789 19.475C18.752 18.068 19.148 16.706 19.172 16.637C19.142 16.624 16.520 15.619 16.494 12.601L16.493 12.602ZM13.981 5.187C14.677 4.341 15.147 3.169 15.018 2.000C14.016 2.040 12.800 2.668 12.080 3.511C11.435 4.260 10.869 5.452 11.021 6.598C12.140 6.686 13.283 6.030 13.981 5.187Z", fill: color })));
};
AppleLogo.displayName = 'AppleLogo';