UNPKG

onecart-ui

Version:

OneCart UI: Cross-platform design tokens + React & React Native components

10 lines (9 loc) 699 B
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const UnfoldLess = ({ 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: "M2.000 20.238L3.775 22.000L7.737 18.037L11.700 22.000L13.462 20.238L7.737 14.500L2.000 20.238ZM13.475 3.762L11.700 2.000L7.737 5.963L3.775 2.000L2.000 3.762L7.737 9.500L13.475 3.762Z", fill: color }))); }; UnfoldLess.displayName = 'UnfoldLess';