onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
12 lines (11 loc) • 1.32 kB
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const AutoDelete = ({ 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: "M22.000 2.000H17.000L14.143 2.000H7.000L7.000 2.000H2.000V4.857H22.000V2.000Z", fill: color }),
React.createElement(Path, { d: "M13.429 8.667C12.762 8.667 12.124 8.762 11.524 8.943V2.952H2.000V14.381C2.000 15.429 2.857 16.286 3.905 16.286H9.314C8.476 20.438 10.771 22.000 13.429 22.000C17.114 22.000 20.095 19.019 20.095 15.333C20.095 11.648 17.114 8.667 13.429 8.667ZM6.762 15.333C6.762 15.657 6.790 15.971 6.838 16.286H2.000V6.762H9.619V9.867C7.895 11.076 6.762 13.067 6.762 15.333ZM13.429 20.095C10.800 20.095 8.667 17.962 8.667 15.333C8.667 12.705 10.800 10.571 13.429 10.571C16.057 10.571 18.190 12.705 18.190 15.333C18.190 17.962 16.057 20.095 13.429 20.095Z", fill: color }),
React.createElement(Path, { d: "M14.162 2.000H10.108V15.514L19.838 21.189L22.000 17.946L14.162 13.351V2.000Z", fill: color })));
};
AutoDelete.displayName = 'AutoDelete';