UNPKG

onecart-ui

Version:

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

11 lines (10 loc) 931 B
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const Home = ({ 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: "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';