onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 1.06 kB
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const Person = ({ 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: "M12.000 4.500C13.375 4.500 14.500 5.625 14.500 7.000C14.500 8.375 13.375 9.500 12.000 9.500C10.625 9.500 9.500 8.375 9.500 7.000C9.500 5.625 10.625 4.500 12.000 4.500ZM12.000 17.000C15.375 17.000 19.250 18.612 19.500 19.500H4.500C4.787 18.600 8.638 17.000 12.000 17.000ZM12.000 2.000C9.237 2.000 7.000 4.237 7.000 7.000C7.000 9.763 9.237 12.000 12.000 12.000C14.763 12.000 17.000 9.763 17.000 7.000C17.000 4.237 14.763 2.000 12.000 2.000ZM12.000 14.500C8.662 14.500 2.000 16.175 2.000 19.500V22.000H22.000V19.500C22.000 16.175 15.338 14.500 12.000 14.500Z", fill: color })));
};
Person.displayName = 'Person';