UNPKG

onecart-ui

Version:

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

10 lines (9 loc) 618 B
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const Sort = ({ 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 18.667H8.667V16.444H2.000V18.667ZM2.000 5.333V7.556H22.000V5.333H2.000ZM2.000 13.111H15.333V10.889H2.000V13.111Z", fill: color }))); }; Sort.displayName = 'Sort';