onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
9 lines (8 loc) • 896 B
JavaScript
import React from 'react';
export const Drafts = ({ size = 'md', color = 'currentColor', className, 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", xmlns: "http://www.w3.org/2000/svg", className: className, style: style },
React.createElement("path", { d: "M21.990 9.000C21.990 8.280 21.620 7.650 21.050 7.300L12.000 2.000L2.950 7.300C2.380 7.650 2.000 8.280 2.000 9.000V18.000C3.000 19.100 3.900 20.000 5.000 20.000H21.000C21.100 21.000 22.000 20.100 22.000 19.000L21.990 9.000ZM19.990 9.000V8.010L13.000 13.000L5.000 8.000L13.000 3.320L20.990 8.000ZM5.000 18.000V11.340L12.000 16.360L19.990 11.370L20.000 19.000H4.000Z", fill: color })));
};
Drafts.displayName = 'Drafts';