onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
14 lines (13 loc) • 1.63 kB
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const Campaign = ({ 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: "M22.000 9.273C20.182 6.864 18.364 4.409 16.545 2.000C12.045 5.364 6.364 9.636 2.000 12.909C3.818 15.318 5.636 17.773 7.455 20.182C11.818 16.909 17.500 12.682 22.000 9.273Z", fill: color }),
React.createElement(Path, { d: "M4.353 10.235C3.059 10.235 2.000 11.294 2.000 12.588V14.941C2.000 16.235 3.059 17.294 4.353 17.294H5.529V22.000H7.882V17.294H9.059L14.941 20.824V6.706L9.059 10.235H4.353ZM10.271 12.247L12.588 10.859V16.671L10.271 15.282L9.706 14.941H9.059H4.353V12.588H9.059H9.706L10.271 12.247Z", fill: color }),
React.createElement(Path, { d: "M2.000 2.000C2.000 5.350 2.000 8.650 2.000 12.000C8.000 12.000 15.800 12.000 22.000 12.000C22.000 8.650 22.000 5.350 22.000 2.000C15.800 2.000 8.000 2.000 2.000 2.000Z", fill: color }),
React.createElement(Path, { d: "M12.219 11.781C12.219 7.898 10.526 4.394 7.839 2.000V11.752C20.307 9.387 22.000 5.883 22.000 2.000Z", fill: color }),
React.createElement(Path, { d: "M2.000 9.318C6.364 12.545 12.045 16.818 16.545 20.182C18.364 17.773 20.182 15.318 22.000 12.909C17.500 9.545 11.818 5.273 7.455 2.000C5.636 4.455 3.818 6.909 2.000 9.318Z", fill: color })));
};
Campaign.displayName = 'Campaign';