onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 783 B
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const Dock = ({ 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: "M8.355 22.000H15.627V20.182H8.355V22.000ZM15.627 2.009L8.355 2.000C7.355 2.000 6.536 2.818 6.536 3.818V16.536C6.545 17.536 7.364 18.355 8.364 18.355H15.636C16.627 18.364 17.445 17.545 17.445 16.545V3.809C17.455 2.809 16.636 2.000 15.636 2.000ZM15.636 14.718H8.364V5.627H15.636V14.718Z", fill: color })));
};
Dock.displayName = 'Dock';