UNPKG

onecart-ui

Version:

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

15 lines (14 loc) 1.63 kB
import React from 'react'; export const HomeWork = ({ 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: "M22.000 2.000H2.000V22.000H22.000V2.000Z", fill: color }), React.createElement("path", { d: "M2.000 12.000V22.000H8.000V17.000H10.000V22.000H16.000V12.000L9.000 7.000L2.000 12.000ZM14.000 20.000H12.000V15.000H6.000V20.000H4.000V13.030L9.000 9.460L14.000 13.030V20.000Z", fill: color }), React.createElement("path", { d: "M7.580 2.000V2.000L11.983 3.586V4.219H19.781V19.748H15.344V21.967H22.000V2.000H7.580Z", fill: color }), React.createElement("path", { d: "M22.000 2.000H2.000V22.000H22.000V2.000Z", fill: color }), React.createElement("path", { d: "M22.000 2.000H2.000V22.000H22.000V2.000Z", fill: color }), React.createElement("path", { d: "M2.000 19.674V22.000H3.395V20.837H3.860V22.000H5.256V19.674L3.628 18.512L2.000 19.674ZM4.791 21.535H4.326V20.372H2.930V21.535H2.465V19.914L3.628 19.084L4.791 19.914V21.535Z", fill: color }), React.createElement("path", { d: "M2.000 20.408V22.000H2.955V21.204H3.274V22.000H4.229V20.408L3.115 19.611L2.000 20.408ZM3.911 21.681H3.592V20.885H2.637V21.681H2.318V20.572L3.115 20.003L3.911 20.572V21.681Z", fill: color }))); }; HomeWork.displayName = 'HomeWork';