UNPKG

onecart-ui

Version:

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

10 lines (9 loc) 919 B
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const KingBed = ({ 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: "M22.000 12.712C22.000 11.534 21.036 10.570 19.858 10.570V5.931C21.282 4.753 20.318 3.789 19.140 3.789H6.285C3.682 5.214 2.718 6.178 2.718 7.356V9.145C2.964 9.145 2.000 10.109 2.000 11.288V18.069H2.000L4.142 18.786H5.214L4.507 18.069H18.079L20.211 18.786H21.282L20.575 18.069H22.000V12.712ZM17.715 10.570H12.359V7.356H17.715V10.570ZM4.860 7.356H10.216V10.570H4.860V7.356ZM2.718 12.712H19.858V15.926H2.718V12.712Z", fill: color }))); }; KingBed.displayName = 'KingBed';