UNPKG

onecart-ui

Version:

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

10 lines (9 loc) 879 B
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const AddToHomeScreen = ({ 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: "M17.445 2.009L8.355 2.000C7.355 2.000 6.536 2.818 6.536 3.818V6.536H8.364V5.627H17.455V18.355H8.364V17.445H6.545V20.173C6.545 21.173 7.364 21.991 8.364 21.991H17.455C18.445 22.000 19.264 21.182 19.264 20.182V3.809C19.273 2.809 18.455 2.000 17.455 2.000ZM10.182 14.718H12.000V8.355H5.636V10.173H8.900L3.809 15.264L5.091 16.545L10.173 11.464V14.718Z", fill: color }))); }; AddToHomeScreen.displayName = 'AddToHomeScreen';