onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 940 B
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const PhoneIphone = ({ 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: "M15.182 2.000H7.909C6.655 2.000 5.636 3.018 5.636 4.273V19.727C5.636 20.982 6.655 22.000 7.909 22.000H15.182C16.436 22.000 17.455 20.982 17.455 19.727V4.273C17.455 3.018 16.436 2.000 15.182 2.000ZM11.545 21.091C10.791 21.091 10.182 20.482 10.182 19.727C10.182 18.973 10.791 18.364 11.545 18.364C12.300 18.364 12.909 18.973 12.909 19.727C12.909 20.482 12.300 21.091 11.545 21.091ZM15.636 17.455H7.455V4.727H15.636V17.455Z", fill: color })));
};
PhoneIphone.displayName = 'PhoneIphone';