UNPKG

onecart-ui

Version:

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

10 lines (9 loc) 1.09 kB
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const CurrencyPound = ({ 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: "M10.649 22.000C12.735 22.000 14.562 20.735 14.973 18.757L13.081 17.805C12.811 18.984 12.086 19.838 10.649 19.838H5.351C10.032 14.973 10.757 13.524 10.757 11.730C10.757 11.351 10.724 10.984 10.670 10.649H14.432V8.486H9.914C5.243 10.562 4.162 9.676 4.162 7.946C4.162 5.859 5.859 4.162 7.946 4.162C9.568 4.162 10.962 5.189 11.492 6.627L13.492 5.784C12.627 3.568 10.476 2.000 7.946 2.000C4.659 2.000 2.000 4.659 2.000 7.946C2.000 9.870 2.854 11.081 3.611 12.270H2.000V14.432H4.670C8.541 10.984 8.595 11.341 8.595 11.730C8.595 14.649 5.784 16.054 5.784 16.054V22.000H10.649Z", fill: color }))); }; CurrencyPound.displayName = 'CurrencyPound';