onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
11 lines (10 loc) • 926 B
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const Article = ({ 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: "M19.778 4.222V19.778H4.222V4.222H19.778ZM19.778 2.000H4.222C3.000 2.000 2.000 3.000 2.000 4.222V19.778C2.000 21.000 3.000 22.000 4.222 22.000H19.778C21.000 22.000 22.000 21.000 22.000 19.778V4.222C22.000 3.000 21.000 2.000 19.778 2.000Z", fill: color }),
React.createElement(Path, { d: "M16.000 22.000H2.000V18.000H16.000V22.000ZM22.000 14.000H2.000V10.000H22.000V14.000ZM22.000 6.000H2.000V2.000H22.000V6.000Z", fill: color })));
};
Article.displayName = 'Article';