UNPKG

onecart-ui

Version:

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

9 lines (8 loc) 971 B
import React from 'react'; export const AddToPhotos = ({ size = 'md', color = 'currentColor', className, 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", xmlns: "http://www.w3.org/2000/svg", className: className, style: style }, React.createElement("path", { d: "M4.000 6.000H2.000V20.000C2.000 21.100 2.900 22.000 4.000 22.000H18.000V20.000H4.000V6.000ZM20.000 2.000H8.000C6.900 2.000 6.000 2.900 6.000 4.000V16.000C6.000 17.100 6.900 18.000 8.000 18.000H20.000C21.100 18.000 22.000 17.100 22.000 16.000V4.000C22.000 2.900 21.100 2.000 20.000 2.000ZM20.000 16.000H8.000V4.000H20.000V16.000ZM13.000 15.000H15.000V11.000H19.000V9.000H15.000V5.000H13.000V9.000H9.000V11.000H13.000V15.000Z", fill: color }))); }; AddToPhotos.displayName = 'AddToPhotos';