onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 915 B
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const Cottage = ({ 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: "M12.000 3.818L6.545 7.982V6.545H4.727V9.373L2.000 11.455L3.100 12.900L4.727 11.655V20.182H19.273V11.655L20.900 12.891L22.000 11.455L12.000 3.818ZM17.455 18.364H12.909V14.727H11.091V18.364H6.545V10.273L12.000 6.109L17.455 10.273V18.364ZM10.182 2.000C10.182 3.509 8.964 4.727 7.455 4.727C6.955 4.727 6.545 5.136 6.545 5.636H4.727C4.727 4.127 5.945 2.909 7.455 2.909C7.955 2.909 8.364 2.500 8.364 2.000H10.182Z", fill: color })));
};
Cottage.displayName = 'Cottage';