UNPKG

onecart-ui

Version:

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

10 lines (9 loc) 1.06 kB
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const Apartment = ({ 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: "M17.556 10.889V2.000H6.444V6.444H2.000V22.000H10.889V17.556H13.111V22.000H22.000V10.889H17.556ZM6.444 19.778H4.222V17.556H6.444V19.778ZM6.444 15.333H4.222V13.111H6.444V15.333ZM6.444 10.889H4.222V8.667H6.444V10.889ZM10.889 15.333H8.667V13.111H10.889V15.333ZM10.889 10.889H8.667V8.667H10.889V10.889ZM10.889 6.444H8.667V4.222H10.889V6.444ZM15.333 15.333H13.111V13.111H15.333V15.333ZM15.333 10.889H13.111V8.667H15.333V10.889ZM15.333 6.444H13.111V4.222H15.333V6.444ZM19.778 19.778H17.556V17.556H19.778V19.778ZM19.778 15.333H17.556V13.111H19.778V15.333Z", fill: color }))); }; Apartment.displayName = 'Apartment';