onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 701 B
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const Navigation = ({ 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: "M9.895 7.547L14.400 18.526L10.747 16.916L9.895 16.537L9.042 16.916L5.389 18.526L9.895 7.547ZM9.895 2.000L2.000 21.253L2.747 22.000L9.895 18.842L17.042 22.000L17.789 21.253L9.895 2.000Z", fill: color })));
};
Navigation.displayName = 'Navigation';