UNPKG

onecart-ui

Version:

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

12 lines (11 loc) 2.19 kB
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const ContentPaste = ({ 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: "M19.273 2.000H15.473C13.273 2.764 12.273 2.000 11.091 2.000C9.909 2.000 8.909 2.764 8.527 3.818H4.727C5.545 2.000 4.727 2.818 4.727 3.818V20.182C2.909 21.182 3.727 22.000 4.727 22.000H17.455C20.273 20.182 21.091 19.364 21.091 18.364V5.636C19.273 4.636 18.455 3.818 17.455 3.818ZM11.091 3.818C11.591 3.818 12.000 4.227 12.000 4.727C12.000 5.227 11.591 5.636 11.091 5.636C10.591 5.636 10.182 5.227 10.182 4.727C10.182 4.227 10.591 3.818 11.091 3.818ZM17.455 20.182H4.727V5.636H6.545V8.364H15.636V5.636H17.455V20.182Z", fill: color }), React.createElement(Path, { d: "M5.765 17.294H4.781C4.682 17.021 4.424 16.824 4.118 16.824C3.812 16.824 3.553 17.021 3.454 17.294H2.471C2.212 17.294 2.000 17.506 2.000 17.765V21.529C2.000 21.788 2.212 22.000 2.471 22.000H5.765C6.024 22.000 6.235 21.788 6.235 21.529V17.765C6.235 17.506 6.024 17.294 5.765 17.294ZM4.118 17.294C4.247 17.294 4.353 17.400 4.353 17.529C4.353 17.659 4.247 17.765 4.118 17.765C3.988 17.765 3.882 17.659 3.882 17.529C3.882 17.400 3.988 17.294 4.118 17.294ZM5.765 21.529H2.471V17.765H2.941V18.471H5.294V17.765H5.765V21.529Z", fill: color }), React.createElement(Path, { d: "M4.568 18.790H3.897C3.830 18.604 3.653 18.469 3.445 18.469C3.236 18.469 3.059 18.604 2.992 18.790H2.321C2.144 18.790 2.000 18.934 2.000 19.111V21.679C2.000 21.856 2.144 22.000 2.321 22.000H4.568C4.745 22.000 4.889 21.856 4.889 21.679V19.111C4.889 18.934 4.745 18.790 4.568 18.790ZM3.445 18.790C3.533 18.790 3.605 18.862 3.605 18.950C3.605 19.039 3.533 19.111 3.445 19.111C3.356 19.111 3.284 19.039 3.284 18.950C3.284 18.862 3.356 18.790 3.445 18.790ZM4.568 21.679H2.321V19.111H2.642V19.592H4.247V19.111H4.568V21.679Z", fill: color }))); }; ContentPaste.displayName = 'ContentPaste';