UNPKG

onecart-ui

Version:

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

10 lines (9 loc) 1.54 kB
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const AllInbox = ({ 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 2.000H4.222C3.000 2.000 2.000 3.000 2.000 4.222V12.000C2.000 13.222 3.000 14.222 4.222 14.222H19.778C21.000 14.222 22.000 13.222 22.000 12.000V4.222C22.000 3.000 21.000 2.000 19.778 2.000ZM4.222 9.778H7.700C7.933 10.644 8.444 11.411 9.111 12.000H4.222V9.778ZM19.778 12.000H14.889C15.556 11.411 16.067 10.644 16.300 9.778H19.778V12.000ZM19.778 7.556H14.222V8.667C14.222 9.856 13.189 10.889 12.000 10.889C10.811 10.889 9.778 9.856 9.778 8.667V7.556H4.222V4.222H19.778V7.556ZM17.556 15.333H14.222V16.444C14.222 16.967 14.011 17.444 13.689 17.833C13.278 18.333 12.667 18.667 12.000 18.667C11.333 18.667 10.722 18.333 10.311 17.833C9.989 17.444 9.778 16.967 9.778 16.444V15.333H2.000V19.778C2.000 21.000 3.000 22.000 4.222 22.000H19.778C21.000 22.000 22.000 21.000 22.000 19.778V15.333H17.556ZM4.222 17.556H7.700C7.722 17.656 7.767 17.744 7.800 17.833C8.067 18.589 8.522 19.256 9.111 19.778H4.222V17.556ZM19.778 19.778H14.889C15.489 19.256 15.944 18.589 16.200 17.833C16.233 17.744 16.278 17.656 16.300 17.556H19.778V19.778Z", fill: color }))); }; AllInbox.displayName = 'AllInbox';