UNPKG

onecart-ui

Version:

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

9 lines (8 loc) 1.03 kB
import React from 'react'; export const Splitscreen = ({ 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: "M18.000 4.000V9.000H6.000V4.000H18.000ZM18.000 2.000H6.000C4.900 2.000 4.000 2.900 4.000 4.000V9.000C4.000 10.100 4.900 11.000 6.000 11.000H18.000C19.100 11.000 20.000 10.100 20.000 9.000V4.000C20.000 2.900 19.100 2.000 18.000 2.000ZM18.000 15.000V20.000H6.000V15.000H18.000ZM18.000 13.000H6.000C4.900 13.000 4.000 13.900 4.000 15.000V20.000C4.000 21.100 4.900 22.000 6.000 22.000H18.000C19.100 22.000 20.000 21.100 20.000 20.000V15.000C20.000 13.900 19.100 13.000 18.000 13.000Z", fill: color }))); }; Splitscreen.displayName = 'Splitscreen';