onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 1.02 kB
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const Payments = ({ 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: "M18.364 13.818V6.545C18.364 5.545 17.545 4.727 16.545 4.727H3.818C2.818 4.727 2.000 5.545 2.000 6.545V13.818C2.000 14.818 2.818 15.636 3.818 15.636H16.545C17.545 15.636 18.364 14.818 18.364 13.818ZM16.545 13.818H3.818V6.545H16.545V13.818ZM10.182 7.455C8.673 7.455 7.455 8.673 7.455 10.182C7.455 11.691 8.673 12.909 10.182 12.909C11.691 12.909 12.909 11.691 12.909 10.182C12.909 8.673 11.691 7.455 10.182 7.455ZM22.000 7.455V17.455C22.000 18.455 21.182 19.273 20.182 19.273H4.727V17.455H20.182V7.455H22.000Z", fill: color })));
};
Payments.displayName = 'Payments';