onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
9 lines (8 loc) • 731 B
JavaScript
import React from 'react';
export const WarningAmber = ({ 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: "M11.091 6.536L17.936 18.364H4.245L12.000 5.627ZM12.000 2.000L2.000 19.273H22.000L11.091 2.909ZM12.000 15.636H10.182V17.455H12.000V15.636ZM12.000 10.182H10.182V13.818H12.000V10.182Z", fill: color })));
};
WarningAmber.displayName = 'WarningAmber';