onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 743 B
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const Delete = ({ 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: "M15.333 8.667V18.667H7.556V7.556H16.444ZM13.667 2.000H8.111L8.111 2.000H4.222V4.222H19.778V2.000H15.889L13.667 2.000ZM17.556 6.444H4.222V19.778C4.222 21.000 5.222 22.000 6.444 22.000H15.333C17.667 20.889 18.667 19.889 18.667 18.667V6.444Z", fill: color })));
};
Delete.displayName = 'Delete';