onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
13 lines (12 loc) • 1.72 kB
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const EmojiObjects = ({ 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: "M6.999 2.000L2.000 7.001L16.999 22.000L22.000 17.001L6.999 2.000Z", fill: color }),
React.createElement(Path, { d: "M2.000 16.999L6.999 22.000L22.000 6.999L16.999 2.000L2.000 16.999Z", fill: color }),
React.createElement(Path, { d: "M8.667 2.000H2.000V22.000H8.667V2.000Z", fill: color }),
React.createElement(Path, { d: "M9.747 2.000C9.263 2.000 8.768 2.042 8.274 2.147C5.368 2.705 3.053 5.053 2.505 7.958C2.000 10.705 3.011 13.232 4.842 14.863C5.295 15.263 5.537 15.821 5.537 16.411V17.116C7.263 18.274 8.210 19.221 9.368 19.221H9.663C8.305 21.579 8.968 22.000 9.747 22.000C10.526 22.000 11.200 21.579 11.558 20.947H11.853C14.737 19.221 15.684 18.274 15.684 17.116V16.411C13.958 15.832 14.189 15.263 14.632 14.874C16.158 13.526 17.116 11.558 17.116 9.368C17.116 5.295 13.821 2.000 9.747 2.000ZM11.853 16.737H7.642V15.684H11.853V16.737ZM7.642 18.842V16.063H13.579V17.116H9.368ZM13.232 13.305C13.137 13.389 13.063 13.495 12.979 13.579H6.505C8.147 11.758 8.073 11.653 7.979 11.569C6.589 10.327 5.968 8.474 6.305 6.621C6.684 4.579 8.368 2.884 10.400 2.484C10.758 2.411 11.116 2.379 11.473 2.379C14.379 2.379 16.737 4.737 16.737 7.642C16.737 9.148 16.095 10.579 14.958 11.579Z", fill: color })));
};
EmojiObjects.displayName = 'EmojiObjects';