UNPKG

onecart-ui

Version:

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

10 lines (9 loc) 980 B
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const History = ({ 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: "M13.429 2.000C8.695 2.000 4.857 5.838 4.857 10.571H2.000L3.800 16.181L3.867 16.314L7.714 12.476H4.857C6.762 6.886 9.743 3.905 13.429 3.905C17.114 3.905 20.095 6.886 20.095 10.571C20.095 14.257 17.114 17.238 13.429 17.238C11.590 17.238 9.924 16.486 8.724 15.276L7.371 16.629C8.924 18.181 11.057 19.143 13.429 19.143C18.162 19.143 22.000 15.305 22.000 10.571C22.000 5.838 18.162 2.000 13.429 2.000ZM12.476 6.762V13.429L14.619 15.829L15.352 14.610L12.000 12.619V6.762H12.476Z", fill: color }))); }; History.displayName = 'History';