onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
11 lines (10 loc) • 1.59 kB
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const LaptopMac = ({ 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 17.000C19.583 17.000 20.325 16.250 20.325 15.333L20.333 6.167C20.333 5.250 19.583 4.500 18.667 4.500H5.333C4.417 4.500 3.667 5.250 3.667 6.167V15.333C3.667 16.250 4.417 17.000 5.333 17.000H2.000C2.000 17.917 2.750 18.667 3.667 18.667H20.333C21.250 18.667 22.000 17.917 22.000 17.000H18.667ZM5.333 6.167H18.667V15.333H5.333V6.167ZM12.000 17.833C11.542 17.833 11.167 17.458 11.167 17.000C11.167 16.542 11.542 16.167 12.000 16.167C12.458 16.167 12.833 16.542 12.833 17.000C12.833 17.458 12.458 17.833 12.000 17.833Z", fill: color }),
React.createElement(Path, { d: "M6.651 21.535C6.907 21.535 7.114 21.326 7.114 21.070L7.116 18.512C7.116 18.256 6.907 18.047 6.651 18.047H2.930C2.674 18.047 2.465 18.256 2.465 18.512V21.070C2.465 21.326 2.674 21.535 2.930 21.535H2.000C2.000 21.791 2.209 22.000 2.465 22.000H7.116C7.372 22.000 7.581 21.791 7.581 21.535H6.651ZM2.930 18.512H6.651V21.070H2.930V18.512ZM4.791 21.767C4.663 21.767 4.558 21.663 4.558 21.535C4.558 21.407 4.663 21.302 4.791 21.302C4.919 21.302 5.023 21.407 5.023 21.535C5.023 21.663 4.919 21.767 4.791 21.767Z", fill: color })));
};
LaptopMac.displayName = 'LaptopMac';