UNPKG

onecart-ui

Version:

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

10 lines (9 loc) 1.39 kB
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const RoomPreferences = ({ 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: "M20.850 15.485L22.000 14.476L20.991 12.731L19.529 13.225C19.206 12.953 18.843 12.741 18.440 12.590L18.137 11.077H16.120L15.817 12.580C15.414 12.731 15.051 12.943 14.728 13.215L13.266 12.721L12.257 14.466L13.407 15.475C13.326 15.979 13.326 16.241 13.407 16.745L12.257 17.754L13.266 19.499L14.728 19.005C15.051 19.277 15.414 19.489 15.817 19.640L16.120 21.163H18.137L18.440 19.660C18.843 19.509 19.206 19.297 19.529 19.025L20.991 19.519L22.000 17.774L20.850 16.766C20.931 16.251 20.931 15.989 20.850 15.485ZM17.129 18.137C16.019 18.137 15.111 17.229 15.111 16.120C15.111 15.011 16.019 14.103 17.129 14.103C18.238 14.103 19.146 15.011 19.146 16.120C19.146 17.229 18.238 18.137 17.129 18.137ZM18.137 3.009V9.060H16.120V5.026H14.103V11.077H12.086V4.017H6.034V18.137H11.077V20.154H2.000V18.137H4.017V2.000H14.103V3.009H18.137ZM11.077 12.086H9.060V10.069H11.077V12.086Z", fill: color }))); }; RoomPreferences.displayName = 'RoomPreferences';