onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 853 B
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const Carpenter = ({ 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.152 14.371L5.780 2.000L2.000 5.780L9.901 17.121C9.143 17.879 9.143 19.114 9.901 19.872L11.271 21.242C12.029 22.000 13.263 22.000 14.021 21.242L18.142 17.121C18.910 16.363 18.910 15.129 18.152 14.371ZM4.527 6.004L5.780 4.750L14.031 13.001L11.300 15.732L4.527 6.004ZM12.651 19.862L11.281 18.492L15.401 14.371L16.772 15.741L12.651 19.862Z", fill: color })));
};
Carpenter.displayName = 'Carpenter';