onecart-ui
Version:
OneCart UI: Cross-platform design tokens + React & React Native components
12 lines (11 loc) • 2.11 kB
JavaScript
import React from 'react';
import { Svg, Path } from 'react-native-svg';
export const DepartureBoard = ({ 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: "M15.636 2.000C13.464 2.000 11.555 3.091 10.409 4.745C10.036 4.736 9.664 4.727 9.273 4.727C5.255 4.727 2.000 5.182 2.000 8.364V17.455C2.000 18.255 2.355 18.973 2.909 19.473V21.091C2.909 21.591 3.318 22.000 3.818 22.000H4.727C5.227 22.000 5.636 21.591 5.636 21.091V20.182H12.909V21.091C12.909 21.591 13.318 22.000 13.818 22.000H14.727C15.227 22.000 15.636 21.591 15.636 21.091V19.473C16.191 18.973 16.545 18.255 16.545 17.455V14.655C19.627 14.209 22.000 11.573 22.000 8.364C22.000 4.845 19.155 2.000 15.636 2.000ZM9.273 6.545H9.536C9.455 6.836 9.391 7.145 9.345 7.445H4.127C4.627 6.964 5.918 6.545 9.273 6.545ZM3.818 9.264H9.345C9.491 10.273 9.864 11.200 10.418 12.000H3.818V9.264ZM14.727 17.455C14.727 17.791 14.536 18.018 14.418 18.118L14.155 18.364H4.391L4.127 18.118C4.009 18.018 3.818 17.791 3.818 17.455V13.818H12.373C13.082 14.245 13.873 14.536 14.727 14.655V17.455ZM15.636 12.909C13.127 12.909 11.091 10.873 11.091 8.364C11.091 5.855 13.127 3.818 15.636 3.818C18.145 3.818 20.182 5.855 20.182 8.364C20.182 10.873 18.145 12.909 15.636 12.909ZM16.091 4.727H14.727V9.273L18.018 11.236L18.700 10.118L16.091 8.591V4.727Z", fill: color }),
React.createElement(Path, { d: "M12.000 22.000C17.523 22.000 22.000 17.523 22.000 12.000C22.000 6.477 17.523 2.000 12.000 2.000C6.477 2.000 2.000 6.477 2.000 12.000C2.000 17.523 6.477 22.000 12.000 22.000Z", fill: color }),
React.createElement(Path, { d: "M12.000 22.000C17.523 22.000 22.000 17.523 22.000 12.000C22.000 6.477 17.523 2.000 12.000 2.000C6.477 2.000 2.000 6.477 2.000 12.000C2.000 17.523 6.477 22.000 12.000 22.000Z", fill: color })));
};
DepartureBoard.displayName = 'DepartureBoard';