onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
10 lines (9 loc) • 1.12 kB
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const Https = ({ 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: "M16.286 8.667H15.333V6.762C15.333 4.133 13.200 2.000 10.571 2.000C7.943 2.000 5.810 4.133 5.810 6.762V6.762H6.762C3.810 8.667 2.952 9.524 2.952 10.571V18.190C4.857 19.238 5.714 20.095 6.762 20.095H18.190C17.333 22.000 18.190 21.143 18.190 20.095V8.667C20.095 7.619 19.238 6.762 18.190 6.762ZM9.619 4.857C9.619 3.276 10.895 2.000 12.476 2.000C14.057 2.000 15.333 3.276 15.333 4.857V8.667H7.714V6.762ZM16.286 20.095H4.857V10.571H16.286V20.095ZM10.571 17.238C11.619 17.238 12.476 16.381 12.476 15.333C12.476 14.286 11.619 13.429 10.571 13.429C9.524 13.429 8.667 14.286 8.667 15.333C8.667 16.381 9.524 17.238 10.571 17.238Z", fill: color })));
};
Https.displayName = 'Https';