UNPKG

onecart-ui

Version:

OneCart UI: Cross-platform design tokens + React & React Native components

10 lines (9 loc) 844 B
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const Chat = ({ 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: "M4.000 4.000H20.000V16.000H5.170L4.000 17.170V4.000ZM4.000 2.000C2.900 2.000 2.010 2.900 2.010 4.000L2.000 22.000L6.000 18.000H20.000C21.100 18.000 22.000 17.100 22.000 16.000V4.000C22.000 2.900 21.100 2.000 20.000 2.000H4.000ZM6.000 12.000H14.000V14.000H6.000V12.000ZM6.000 9.000H18.000V11.000H6.000V9.000ZM6.000 6.000H18.000V8.000H6.000V6.000Z", fill: color }))); }; Chat.displayName = 'Chat';