UNPKG

onecart-ui

Version:

OneCart UI: Cross-platform design tokens + React & React Native components

11 lines (10 loc) 1.07 kB
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const Login = ({ 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: "M11.000 2.000L9.600 3.400L12.200 6.000H2.000V8.000H12.200L4.600 15.600L6.000 17.000L11.000 12.000L6.000 7.000ZM15.000 19.000H7.000V21.000H15.000C21.100 16.000 22.000 15.100 22.000 14.000V5.000C17.000 3.900 16.100 3.000 15.000 3.000H7.000V5.000H15.000V19.000Z", fill: color }), React.createElement(Path, { d: "M4.118 16.918L3.788 17.247L4.400 17.859H2.000V18.329H4.400L2.000 20.729L2.329 21.059L3.506 19.882L2.329 18.706ZM4.447 21.529H2.565V22.000H4.447C6.494 20.212 6.706 20.000 6.706 19.741V18.235C4.918 17.976 4.706 17.765 4.447 17.765H2.565V18.235H4.447V21.529Z", fill: color }))); }; Login.displayName = 'Login';