onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 961 B
JavaScript
import React from 'react';
export const Home = ({ 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: "M11.000 5.690L16.000 10.190V17.000H15.000V11.000H9.000V17.000H7.000V9.190L12.000 4.690ZM12.000 2.000L2.000 11.000H5.000V19.000H11.000V13.000H13.000V19.000H19.000V11.000H22.000L11.000 3.000Z", fill: color }),
React.createElement("path", { d: "M2.000 20.787L3.348 22.000V21.410H5.504V19.792H3.887V21.410H3.348V19.304L4.696 18.091ZM4.696 17.366L2.000 19.792H2.809V21.949H4.426V20.331H4.965V21.949H6.583V19.792H7.392L2.000 20.062Z", fill: color })));
};
Home.displayName = 'Home';