onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
13 lines (12 loc) • 1.34 kB
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const AddHomeWork = ({ 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.000H2.000V22.000H22.000V2.000Z", fill: color }),
React.createElement(Path, { d: "M22.000 10.110V2.000H7.000V3.970L9.000 5.400V2.000H20.000V8.680C20.750 9.040 21.430 9.520 22.000 10.110Z", fill: color }),
React.createElement(Path, { d: "M12.000 10.000H6.000V15.000H4.000V8.030L9.000 4.460L14.000 8.030V14.110C9.570 13.520 10.250 13.040 11.000 12.690V7.000L9.000 2.000L2.000 7.000V22.000H3.000V17.000H5.000V22.000H7.680C12.250 16.090 12.000 15.080 12.000 14.000V15.000Z", fill: color }),
React.createElement(Path, { d: "M22.000 12.000C22.000 6.480 17.520 2.000 12.000 2.000C6.480 2.000 2.000 6.480 2.000 12.000C2.000 17.520 6.480 22.000 12.000 22.000C17.520 22.000 22.000 17.520 22.000 12.000ZM11.000 18.000V13.000H6.000V11.000H11.000V6.000H13.000V11.000H18.000V13.000H13.000V18.000H11.000Z", fill: color })));
};
AddHomeWork.displayName = 'AddHomeWork';