onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
11 lines (10 loc) • 1.15 kB
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const LaptopWindows = ({ 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: "M18.667 15.333V16.167C17.917 16.167 18.658 15.417 18.658 14.500L18.667 6.167C18.667 5.250 17.917 4.500 17.000 4.500H3.667C4.417 2.833 3.667 3.583 3.667 4.500V14.500C2.000 15.417 2.750 16.167 3.667 16.167V15.333H2.000V17.000H22.000V15.333H18.667ZM3.667 6.167H17.000V14.500H3.667V6.167Z", fill: color }),
React.createElement(Path, { d: "M6.762 21.524V21.762C6.548 21.762 6.760 21.548 6.760 21.286L6.762 18.905C6.762 18.643 6.548 18.429 6.286 18.429H2.476C2.690 17.952 2.476 18.167 2.476 18.429V21.286C2.000 21.548 2.214 21.762 2.476 21.762V21.524H2.000V22.000H7.714V21.524H6.762ZM2.476 18.905H6.286V21.286H2.476V18.905Z", fill: color })));
};
LaptopWindows.displayName = 'LaptopWindows';